fix: expose Flask app at module level for Gunicorn

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-18 06:04:06 +00:00
parent 5bb82bac04
commit 48f6fd819a

View File

@@ -216,6 +216,8 @@ def create_app():
return app
# Expose at module level for Gunicorn: gunicorn -w 2 -b 0.0.0.0:5001 app:app
app = create_app()
if __name__ == '__main__':
app = create_app()
app.run(host='0.0.0.0', port=5001, debug=True)