first commit
This commit is contained in:
24
public_web/wsgi.py
Normal file
24
public_web/wsgi.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
WSGI entry point for Code of Conquest Public Web Frontend.
|
||||
|
||||
Used by production WSGI servers like Gunicorn.
|
||||
"""
|
||||
|
||||
from app import create_app
|
||||
|
||||
# Create application instance
|
||||
app = create_app()
|
||||
|
||||
if __name__ == "__main__":
|
||||
# For development only
|
||||
# In production, use: gunicorn wsgi:app
|
||||
|
||||
# Get server config from loaded config
|
||||
server_config = app.config.get('server', {})
|
||||
app_config = app.config.get('app', {})
|
||||
|
||||
host = server_config.get('host', '0.0.0.0')
|
||||
port = server_config.get('port', 8000)
|
||||
debug = app_config.get('debug', True)
|
||||
|
||||
app.run(host=host, port=port, debug=debug)
|
||||
Reference in New Issue
Block a user