feat: update Gunicorn configuration to use gthread and remove wsgi.py
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m20s

This commit is contained in:
2026-07-30 00:40:09 -04:00
parent 7e4a08d415
commit 95dee37b60
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -15,4 +15,4 @@ ENV PYTHONIOENCODING=utf-8
VOLUME ["/app/data"] VOLUME ["/app/data"]
# Use Gunicorn instead of python main.py # Use Gunicorn instead of python main.py
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "-k", "gevent", "--workers", "1", "--timeout", "120", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "-c", "gunicorn.conf.py", "wsgi:app"] CMD ["gunicorn", "--bind", "0.0.0.0:5000", "-k", "gthread", "--threads", "8", "--workers", "1", "--timeout", "120", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "-c", "gunicorn.conf.py", "main:app"]
-4
View File
@@ -1,4 +0,0 @@
from gevent import monkey
monkey.patch_all()
from main import app