Unable to host streamlit app using heroku due to error: cannot create /app/.streamlit/config.toml

Hi @Siddhesh_Shankar, welcome to the Streamlit community!! :partying_face: :tada:

It might help to go over some solutions that helped people with the same error. I’d recommend going over this thread. Unrolling setup.sh has worked for at least one user:

mkdir -p ~/.streamlit/
echo "[server]"  > ~/.streamlit/config.toml 
echo "headless = true"  >> ~/.streamlit/config.toml
echo "port = $PORT"  >> ~/.streamlit/config.toml
echo "enableCORS = false"  >> ~/.streamlit/config.toml

Let us know if you still need help after implementing solutions from Not able to deploy to Heroku | Error in creating config.toml, Deploying Heroku Error, and disabling CORS.

I would defer to our awesome community members including @andfanilo and @asehmi who know more about Streamlit <> Heroku

Happy Streamlit-ing! :balloon:
Snehan