feat: update Gunicorn command to use wsgi:app and add wsgi.py for application entry point
Chore App Build, Test, and Push Docker Images / build-and-push (push) Failing after 2m18s
Chore App Build, Test, and Push Docker Images / build-and-push (push) Failing after 2m18s
This commit is contained in:
+1
-1
@@ -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", "main:app"]
|
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"]
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
from gevent import monkey
|
||||||
|
monkey.patch_all()
|
||||||
|
|
||||||
|
from main import app
|
||||||
Reference in New Issue
Block a user