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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user