I’m trying to host streamlit on Heroku but so far I haven’t been successful.
After a series of trial and error I’m launching my web dyno with (content of my Procfile):
web: sh setup.sh && streamlit run some_script.py
mkdir -p ~/.streamlit/ echo "\ [general]\n\ email = \"email@example.com\"\n\ " > ~/.streamlit/credentials.toml echo "\ [server]\n\ headless = true\n\ port = $PORT\n\ " > ~/.streamlit/config.toml
This setup script ensures that the port is properly set, that I’m running a headless server and that the boot process does not get stuck waiting for a valid email.
heroku logs --tail I see that streamlit as started correctly.
When I access
https://my-streamlit-app-on-heroku.herokuapp.com/ I get a streamlit’s empty landing page (with the burguer button on the top right, with a message next to it saying “connecting”).
Eventually I get a popup error saying “Connection failed with status 0.”
Any idea on what I’m might be doing wrong?