Ejemplo n.º 1
0
def main():
    app = create_app()

    with app.app_context():
        cache.clear()
Ejemplo n.º 2
0
from sunshine import create_app

app = create_app()

if __name__ == "__main__":
    import sys
    try:
        port = int(sys.argv[1])
    except (IndexError, ValueError):
        port = 5000
    app.run(debug=True, port=port)
Ejemplo n.º 3
0
def main():
    app = create_app()

    with app.app_context():
        cache.clear()
from sunshine import create_app

app = create_app()

if __name__ == "__main__":
    import sys

    try:
        port = int(sys.argv[1])
    except (IndexError, ValueError):
        port = 5000
    app.run(debug=True, port=port)