Streamlit App Deployed But Not Responding
Hello. I am trying to deploy a Streamlit project to Railway and having issues viewing the site "Application failed to respond"
The deployment ID is
3dae9781-ade8-4491-b7e0-dfe5c5738a9e
. Reviewing another post, I revised my project to not use a Procfile and instead use a railway.json
from this repo - https://github.com/brody192/streamlit-hello/blob/main/railway.json
I also have .python-version
and requirements.txt
, again attempting to mimic the structure of that repo. Yesterday I tried playing around with changing the ports but the issue still persists. Deploy and build logs show no errors so I'm not sure what's the problem. I appreciate any help.GitHub
streamlit-hello/railway.json at main · brody192/streamlit-hello
Contribute to brody192/streamlit-hello development by creating an account on GitHub.
Solution:Jump to solution
please do not store secrets in a plain text file, store them as service variables and load them from the environment in code
8 Replies
Project ID:
3dae9781-ade8-4491-b7e0-dfe5c5738a9e
can you share your repo?
GitHub
GitHub - kdmonroe/phl_steamloop_streamlit: Georeferenced Philadelph...
Georeferenced Philadelphia steam loop visualized with Streamlit Folium - GitHub - kdmonroe/phl_steamloop_streamlit: Georeferenced Philadelphia steam loop visualized with Streamlit Folium
do you have all the needed secrets set?
I do. using
secrets.toml
. I also set these in the railway project itself
I can launch in streamlit dev without issueSolution
please do not store secrets in a plain text file, store them as service variables and load them from the environment in code
ty! works now!
streamlit docs on secrets management call for
.toml
, so swapping upon railway deployment I guess is the fixno problem!