Streamlit-Selenium icon indicating copy to clipboard operation
Streamlit-Selenium copied to clipboard

Will this work if deployed on Heroku/Azure?

Open mansidak opened this issue 2 years ago • 4 comments

I'm thinking away from hosting the app on streamlit and instead hosting on Heroku/Azure due to memory issues (1GB cap). Does anyone know if Streamlit Selenium will run on Heroku/Azure or is this limited to streamlit's hosting platform?

mansidak avatar Feb 20 '23 01:02 mansidak

I haven't used neither Heroku nor Azure, but it should be possible to run Streamlit apps on both of them. It is probably not as easy and straight-forward like on Streamlit Cloud. Search in the streamlit forum, there are some threads with instructions and links about deployment on Heroku, Azure etc.

Franky1 avatar Feb 20 '23 09:02 Franky1

I tried running a simple Streamlit app on Heroku and hugging face and it runs pretty seamlessly. The only issue is that the app won't be able to locate the Webdriver binary. I'm gonna try to find someone who made a repo for that use case.

mansidak avatar Feb 20 '23 13:02 mansidak

@Franky1 I have a question for you though: Would you mind elaborating on how the docker file in your repo works? I was reading documentation to deploy streamlit on Azure and it requires containerizing your deployment in a docker file; I'm curious if it would be the same docker file you have in your repo.

mansidak avatar Feb 20 '23 13:02 mansidak

@mansidak I use the Dockerfile for local development of streamlit apps. The Dockerfile is meant to replicate the Streamlit Cloud environment as closely as possible. This allows me to develop much faster locally instead of endless trial and error commits on Github. If the Streamlit app is running locally in my Docker container, it will mostly work on Streamlit Cloud as well, as long as you don't exceed any resource limits.

The Dockerfile could probably be used also (or with minimal adjustments) on other cloud providers, such as Azure, AWS, Google, etc.

Franky1 avatar Feb 20 '23 22:02 Franky1