I don’t know what this setup.sh file does, I just copied it from the Data Professor tutorial I followed. My Procfile (for Heroku) only says web: sh setup.sh && streamlit run main.py and does not include anything about .streamlit. That might also be an issue. I just have a feeling that Heroku isn’t reading the config.toml. I you know anything about this please lmk.
Thanks for posting and welcome to the Streamlit Community forum!
The setup.sh file contents you’ve posted above look okay. The file creates a directory at ~/.steramlit/ as specified by the first line of code and writes a config file config.toml to the directory created by line 1.
Do you have a Procfile setup in your root directory? Procfile specifies that setup.sh be run to configure the app env and then run your streamlit_app.py file. Here’s an example of how it might look:
web: sh setup.sh && streamlit run streamlit_app.py
This is how an example of how the directories might look for your app:
Thank you @tonykip for the quick response. Please lmk if this looks okay. btw my Procfile contains exactly what it should (web: sh setup.sh && streamlit run main.py)
I tried heroku restart after I pushed my Github changes, it did restart but when I checked the website… nothing happened! I’m not too sure why. Do I need to completely stop the Heroku app and turn it back on when I think the changes save? Remember its not being hosted via my computer locally.
Hey @tonykip and @snehankekre
I’m reaching out again because I am still experiencing issue I you could take a look at the last message I sent that would be greatly appreciated.