This commit is contained in:
2026-01-29 17:10:20 +01:00
parent ac0401a6a5
commit 08d6d7ceb2
5 changed files with 15 additions and 5 deletions

7
app.py
View File

@@ -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)