feat: disable uvicorn worker lifespan (#2845)
### Description Fix this Django exception: Django can only handle ASGI/HTTP connections, not lifespan.
This commit is contained in:
parent
0e91a7db7d
commit
8743c84d0f
2 changed files with 2 additions and 0 deletions
|
@ -167,6 +167,7 @@ WORKDIR /app
|
|||
CMD ["/usr/local/bin/gunicorn", \
|
||||
"--workers=4", \
|
||||
"--worker-class=uvicorn.workers.UvicornWorker", \
|
||||
"--lifespan", "off", \
|
||||
"--log-file", "-", \
|
||||
"--bind=0.0.0.0:9001", \
|
||||
"libretime_api.asgi"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue