v1.2
This commit is contained in:
7
app.py
7
app.py
@@ -131,7 +131,12 @@ def create_app() -> Flask:
|
||||
return app
|
||||
|
||||
|
||||
# WSGI entrypoint for production servers like Gunicorn.
|
||||
# Gunicorn will look for a module-level callable named `app` by default when
|
||||
# you run `gunicorn app:app`.
|
||||
app = create_app()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = create_app()
|
||||
# For production: use a proper WSGI server (gunicorn/uwsgi).
|
||||
app.run(host="0.0.0.0", port=int(os.environ.get("PORT", "5000")), debug=True)
|
||||
|
||||
Reference in New Issue
Block a user