Add gunicorn

This commit is contained in:
2022-03-24 23:40:01 +03:00
parent 11a283a721
commit 9284f78332
3 changed files with 257 additions and 224 deletions

View File

@@ -1,3 +1,3 @@
cd /app
alembic -c ./app/alembic.ini upgrade head
uvicorn main:app --host="0.0.0.0" --port="8080"
gunicorn -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8080