Unable to Run First Deployed App with Custom Domain on Railway

prblsingHOBBY

8 months ago

I’ve deployed my first Streamlit app using a custom domain (yt-insights.datatransformer.in) on Railway, but the application fails to respond after deployment. The error message indicates the application failed to start. I’ve configured correct start command (streamlit run app.py). Please assist with resolving this issue.

Setup is complete:
Public Networking

Access your application over HTTP with the following domains

yt-insights.datatransformer.in

Setup complete

Yet getting this error:

Application failed to respond

This error appears to be caused by the application.

If this is your project, check out your deploy logs to see what went wrong. Refer to our docs on Fixing Common Errors for help, or reach out over our Help Station.

If you are a visitor, please contact the application owner or try again later.

Request ID:
MVviZsxNQHK7hSscKz-HOQ_1721921752

Go to Railway

4 Replies

8 months ago

streamlit run app.py is not the best start command, please see here for the optimal start command.

Once you have made those changes your app should start to work from the custom domain.


prblsingHOBBY

8 months ago

Thanks, done that as well, now getting new error:
Application failed to respond


prblsingHOBBY

8 months ago

I think the issue is with A record and CNAME, any guidance on that should help me. Thank.


8 months ago

You need to use a CNAME, You would need to use Cloudflare as a nameserver - https://developers.cloudflare.com/dns/zone-setups/full-setup/setup/


Unable to Run First Deployed App with Custom Domain on Railway - Railway Help Station