52 likes
·
10.4K reads
7 comments
how can i run uvicorn on specific port ?
Use the following command:
gunicorn -w 4 -k uvicorn.workers.UvicornWorker -b :5000 main:app
This will run the server on port 5000.
Shah Nawaz Shuvo in digital ocean port is not accessible. Is there any suggestions?
Mustafizur Rahman 5000 isn't the port to be exposed to the internet, Nginx is what will control the open port.
So a typical use case would be
mydomain.com:443 -> Nginx -> gunicorn port 5000
That's the meaning of proxy
Great article, wanted to say thank you, been searching for a super simple deployment guide. Making a fastapi is pretty easy, finding a deployment guide not as easy
Its my pleasure. I am glad that this article helped you in some way. Cheers.
How do we deploy fastapi on IIS server?