From 95dee37b60bf14041143608d73d23fb6af525ef6 Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Thu, 30 Jul 2026 00:40:09 -0400 Subject: [PATCH] feat: update Gunicorn configuration to use gthread and remove wsgi.py --- backend/Dockerfile | 2 +- backend/wsgi.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 backend/wsgi.py diff --git a/backend/Dockerfile b/backend/Dockerfile index a12aa31..ba936cc 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -15,4 +15,4 @@ ENV PYTHONIOENCODING=utf-8 VOLUME ["/app/data"] # 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"] \ No newline at end of file +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"] \ No newline at end of file diff --git a/backend/wsgi.py b/backend/wsgi.py deleted file mode 100644 index 76bd473..0000000 --- a/backend/wsgi.py +++ /dev/null @@ -1,4 +0,0 @@ -from gevent import monkey -monkey.patch_all() - -from main import app