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.
No description
No description
No description
Solution:
please do not store secrets in a plain text file, store them as service variables and load them from the environment in code
Jump to solution
8 Replies
Percy
Percy10mo ago
Project ID: 3dae9781-ade8-4491-b7e0-dfe5c5738a9e
Brody
Brody10mo ago
can you share your repo?
champezius
champezius10mo ago
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
Brody
Brody10mo ago
do you have all the needed secrets set?
champezius
champezius10mo ago
I do. using secrets.toml. I also set these in the railway project itself I can launch in streamlit dev without issue
Solution
Brody
Brody10mo ago
please do not store secrets in a plain text file, store them as service variables and load them from the environment in code
champezius
champezius10mo ago
ty! works now! streamlit docs on secrets management call for .toml , so swapping upon railway deployment I guess is the fix
Brody
Brody10mo ago
no problem!
Want results from more Discord servers?
Add your server