Running an app built using gradio
praveenklHOBBY
a year ago
Hi, I have a simple app built using gradio. When I deploy it, I am unable to access it publicly using the domain created by Railway.
For example,
public domain = myapp-production.up.railway.app
I tried http://myapp-production.up.railway.app and http://myapp-production.up.railway.app:7860 but I am unable to connect.
I have an env variable named PORT with value 7860.
Am I missing a step?
Thanks.
2 Replies
a year ago
you need to be using https
https://myapp-production.up.railway.app
please read this docs page https://docs.railway.app/guides/fixing-common-errors
praveenklHOBBY
a year ago
Thank you for the pointer to docs. Gradio by default starts the app on 127.0.0.1 and port 7860. I need to figure out how to make it use 0.0.0.0 for the host.