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
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m20s
This commit is contained in:
+1
-1
@@ -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"]
|
||||
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"]
|
||||
@@ -1,4 +0,0 @@
|
||||
from gevent import monkey
|
||||
monkey.patch_all()
|
||||
|
||||
from main import app
|
||||
Reference in New Issue
Block a user