Deploying with Heroku - H10 App Crashed Error

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:


web: sh && streamlit run



    mkdir -p ~/.streamlit/
    echo “\
    email = \”<myemail@domain>\”\n\
    “ > ~/.streamlit/credentials.toml
    echo “\
    headless = true\n\
    port = $PORT\n\
    “ > ~/.streamlit/config.toml

and of course my file

1 Like

It says to check the logs, what’s in your logs?

H10 according to the dev centre is just that your app crashed. Are those config files written correctly?

My logs just say H10 Error. The config.toml file does not exist by default, but that shouldn’t be the problem. Many people have deployed successfully without creating it.

I finally managed to deploy by switching to ssh authentication. I’m still not sure what the issue was.

I had a similar problem which got sorted by editing the file
mkdir -p ~/.streamlit/
echo “
headless = true
port = $PORT
“ > ~/.streamlit/config.toml