예제 #1
0
def main():
    app = create_app()

    with app.app_context():
        cache.clear()
예제 #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)
예제 #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)