Fix gunicorn app

This commit is contained in:
2025-09-28 15:58:29 +02:00
parent ad8ccb183e
commit 07ecae67fe

View File

@@ -25,4 +25,4 @@ ENV GUNICORN_THREADS=2
# Commande de démarrage via gunicorn (attache l'app Flask : app:app) # Commande de démarrage via gunicorn (attache l'app Flask : app:app)
# Utilise timeout raisonnable, bind sur 0.0.0.0:5000 # Utilise timeout raisonnable, bind sur 0.0.0.0:5000
CMD ["sh", "-c", "gunicorn --workers ${GUNICORN_WORKERS} --threads ${GUNICORN_THREADS} --bind 0.0.0.0:5000 --access-logfile - --error-logfile - 'main:app'"] CMD ["sh", "-c", "gunicorn --workers ${GUNICORN_WORKERS} --threads ${GUNICORN_THREADS} --bind 0.0.0.0:5000 --access-logfile - --error-logfile - 'main:create_app()'"]