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