Hosting streamlit on Heroku

Hi @cgusb, welcome to the Streamlit community!

While an okay thing to do for troubleshooting, thereā€™s no reason why downgrading to 20 versions of Streamlit ago should be necessary to deploy apps on Heroku. Plenty of people on the forum are able to deploy with current versions of Streamlit. Like you also say, the issue is usually around newline or other characters that mess up the deployment process.

Best,
Randy

1 Like

I created this project some time ago, it guides you on how to deploy Streamlit on Heroku and optionally add a Nginx proxy to allow for simple authentication.

2 Likes

Hi Randy, youā€™re absolutely right. I upgraded back to the current version (Streamlit 0.67.1) and my app deployed successfully. Thank you for pointing that out! I should have tried to update again once I got things working.

1 Like

I have compiled some resources to deploy streamlit to heroku (its without the nginx proxy though)

Hi everyone,
I am trying to deploy my app on Heroku but I am unable to figure it out.

Can anyone pls resolve.
Here is the logs:

Regards,
Akash

Have you looked at the several tips in this thread? And this guide?

Also post your Procfile and setup.sh please?

1 Like

Thanks
Yes I have read several tipsā€¦tried using downgraded version of streamlit also.
Still not workingā€¦the app gets deployed but is showing error after thatā€¦
Procfile: web: sh setup && streamlit run solar_app.py

Setup.sh:
mkdir -p ~/.streamlit/

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

Is the issue solved ?

No, still same. Can you help pls

Hi @Akash743, please use this youtube tutorial, hope it will help