Configure Docker to use Gunicorn instead of Flask development server for production deployment. Updated SocketIO configuration for gevent compatibility.

This commit is contained in:
2025-08-26 08:36:54 +00:00
parent eedaa253e4
commit 2fe272bd00
5 changed files with 28 additions and 6 deletions

16
wsgi.py Normal file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env python3
"""
WSGI entry point for the Markov Economics Flask application.
This file is used by Gunicorn to serve the application in production.
"""
import os
from app import create_app
# Use FLASK_ENV if set, otherwise default to production for Gunicorn
config_name = os.getenv('FLASK_ENV', 'production')
app = create_app(config_name)
if __name__ == "__main__":
# This is just for testing purposes
app.run()