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)