From 7e4a08d4151e6feeb474f2ce284af8848d5715a3 Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Thu, 30 Jul 2026 00:29:41 -0400 Subject: [PATCH] feat: update Gunicorn command to use wsgi:app and add wsgi.py for application entry point --- backend/Dockerfile | 2 +- backend/wsgi.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 backend/wsgi.py diff --git a/backend/Dockerfile b/backend/Dockerfile index 49cacad..a12aa31 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", "main:app"] \ No newline at end of file +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 diff --git a/backend/wsgi.py b/backend/wsgi.py new file mode 100644 index 0000000..76bd473 --- /dev/null +++ b/backend/wsgi.py @@ -0,0 +1,4 @@ +from gevent import monkey +monkey.patch_all() + +from main import app