Use gunicorn

This commit is contained in:
2023-05-19 18:34:19 +02:00
parent 2c846fa2fc
commit eb2d8a0584
3 changed files with 26 additions and 3 deletions

View File

@@ -4,4 +4,5 @@ rm -rf prometheus
mkdir prometheus
alembic -c ./app/alembic.ini upgrade head
uvicorn main:app --host 0.0.0.0 --port 8080 --loop uvloop --workers 2 --timeout-keep-alive 30
gunicorn -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8080 --timeout 30 --max-requests=1024 --max-requests-jitter=8