gmao/wsgi.py
root 785c8aabcb
Some checks are pending
CI - Tests et Syntax / lint-and-test (push) Waiting to run
Refondre le RBAC multi-roles et securiser les acces
2026-08-21 16:46:19 +00:00

21 lines
498 B
Python

"""
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')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5080)