I’m trying to deploy a Streamlit app with Heroku. I followed these instructions, but when I run the ‘heroku open’ command, the app tells me to check my logs. When I do, it says I have an H10 error. I have made sure that I am not manually creating a port which seems to be the standard source of this issue. Any debugging suggestions are much appreciated.
I have:
Procfile:
web: sh setup.sh && streamlit run app.py
requirements.txt:
streamlit==0.60.0
setup.sh:
mkdir -p ~/.streamlit/
echo “\
[general]\n\
email = \”<myemail@domain>\”\n\
“ > ~/.streamlit/credentials.toml
echo “\
[server]\n\
headless = true\n\
enableCORS=false\n\
port = $PORT\n\
“ > ~/.streamlit/config.toml
and of course my app.py
file