Hosting streamlit on github pages

Hi @lyqht

Since Streamlit apps aren’t static (that is, they need to run in Python), Streamlit apps cannot run on a static-file host like Github pages. So @gabe_maldonado is right: what you need to do is pick your favorite platform and host it there.

Most hosting platforms are paid (AWS, GCP, Azure, DigitalOcean, etc). The only exception I can think of is Heroku, which has a free tier, albeit with some strong limitations.

People in this forum have used all of those in the past, so search around and ask them questions if you need help with a specific platform. And something else that may be useful is this Streamlit user’s article detailing the steps he too to deploy on AWS EC2: https://medium.com/@pokepim/deploying-streamlit-app-to-ec2-instance-7a7edeffbb54

3 Likes