Configure Docker to use Gunicorn instead of Flask development server for production deployment. Updated SocketIO configuration for gevent compatibility.
This commit is contained in:
16
wsgi.py
Normal file
16
wsgi.py
Normal 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()
|
Reference in New Issue
Block a user