Use uvicorn

This commit is contained in:
2023-05-14 16:21:07 +02:00
parent e91ed672a1
commit f86c91b6a0
10 changed files with 47 additions and 81 deletions

View File

@@ -2,6 +2,7 @@ import os
import httpx
response = httpx.get(
"http://localhost:8080/healthcheck",
headers={"Authorization": os.environ["API_KEY"]},

View File

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