Sign in
Log inSign up
Shah Nawaz Shuvo

51 likes

·

8.6K reads

7 comments

Mustafizur Rahman
Mustafizur Rahman
Dec 6, 2020

how can i run uvicorn on specific port ?

1
·
·3 replies
Shah Nawaz Shuvo
Shah Nawaz Shuvo
Author
·Dec 8, 2020

Use the following command: gunicorn -w 4 -k uvicorn.workers.UvicornWorker -b :5000 main:app

This will run the server on port 5000.

·
Mustafizur Rahman
Mustafizur Rahman
Dec 8, 2020

Shah Nawaz Shuvo in digital ocean port is not accessible. Is there any suggestions?

·
Mgc Labs
Mgc Labs
Jan 17, 2021

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

1
·
Mgc Labs
Mgc Labs
Jan 17, 2021

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

1
·
·1 reply
Shah Nawaz Shuvo
Shah Nawaz Shuvo
Author
·Jan 19, 2021

Its my pleasure. I am glad that this article helped you in some way. Cheers.

·
Girish Krishna
Girish Krishna
May 5, 2021

How do we deploy fastapi on IIS server?

·