fix(api): move gunicorn worker config to python file (#2854)
### Description Passing the --lifespan flag to gunicorn does not forward the option to uvicorn.
This commit is contained in:
parent
35d7eace13
commit
43221d9d7f
3 changed files with 7 additions and 4 deletions
|
@ -166,8 +166,7 @@ WORKDIR /app
|
|||
|
||||
CMD ["/usr/local/bin/gunicorn", \
|
||||
"--workers=4", \
|
||||
"--worker-class=uvicorn.workers.UvicornWorker", \
|
||||
"--lifespan", "off", \
|
||||
"--worker-class=libretime_api.gunicorn.Worker", \
|
||||
"--log-file", "-", \
|
||||
"--bind=0.0.0.0:9001", \
|
||||
"libretime_api.asgi"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue