Skip to content

Commit 63e240a

Browse files
committed
chore: Use gunicorn server
1 parent fb94b29 commit 63e240a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Procfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: uvicorn src.main:app --host=0.0.0.0 --port=${PORT:-8000}
1+
web: gunicorn -w 4 -k uvicorn.workers.UvicornWorker src.main:app

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ email-validator==1.1.3
1616
fakeredis==1.5.2
1717
fastapi==0.66.0
1818
fastapi-mail==0.3.7
19+
gunicorn==20.1.0
1920
h11==0.12.0
2021
hiredis==2.0.0
2122
httpcore==0.13.6

0 commit comments

Comments
 (0)