def app_cli(): args = sys.argv[1:] if len(args) < 1: print("Usage : \n - Run - to Start the App \n") return if str(args[0]).lower() == "run": app.run(debug=False, host="0.0.0.0") else: print("Usage : \n - Run - to Start the App \n")
from apps.app import app from apps import view from apps.config import HOST, PORT, DEBUG if __name__ == '__main__': app.run(host=HOST, port=PORT, debug=DEBUG)
# Run Development Server from apps.app import app if __name__ == "__main__": app.run(debug=True, host="0.0.0.0")
from apps.app import app if __name__ == '__main__': app.run(port=5000, debug=True, threaded=True)
from apps.app import app if __name__ == "__main__": app.run()
from apps.app import app from apps.database import init_db from apps.routes import init_routes init_db() init_routes() app.run(host="0.0.0.0", port=9000, threaded=True)