I’m following the FastAPI guide to deploy my app and as directed have set:
| Start Command: | uvicorn main:app --host 0.0.0.0 --port $PORT |
|---|
However when this deploys I get the error:
bash: line 1: uvicorn: command not found
What should I use instead?
I’m following the FastAPI guide to deploy my app and as directed have set:
| Start Command: | uvicorn main:app --host 0.0.0.0 --port $PORT |
|---|
However when this deploys I get the error:
bash: line 1: uvicorn: command not found
What should I use instead?
I fixed this by setting the Start Command to gunicorn main:app -k uvicorn.workers.UvicornWorker
and adding gunicorn and uvicorn to my dependencies