Add gunicorn

This commit is contained in:
2022-03-24 22:32:04 +03:00
parent 7af762a918
commit fe204e5384
3 changed files with 53 additions and 2 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