Files
2025-11-24 23:10:55 -06:00

25 lines
610 B
Python

"""
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)