Add gunicorn

This commit is contained in:
2022-03-24 22:24:50 +03:00
parent d77677f1fc
commit f87a352012
3 changed files with 81 additions and 61 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" --loop="uvloop" --workers 2
gunicorn -w 2 -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:8080