gmao/wsgi.py

22 lines
498 B
Python
Raw Permalink Normal View History

2026-08-14 18:02:25 +02:00
"""
Point d'entree WSGI pour Gunicorn.
Remplace le serveur de developpement Flask par Gunicorn en production.
Usage: gunicorn --workers 3 --timeout 120 --bind 0.0.0.0:5080 wsgi:app
"""
import os
import sys
# Ajouter /app au PYTHONPATH
sys.path.insert(0, '/app')
# Charger les variables d'environnement
from dotenv import load_dotenv
load_dotenv('/app/.env.docker')
from app_new import create_app
app = create_app('production')
2026-08-14 18:02:25 +02:00
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5080)