Hello Streamlit users and support team,
Has anyone deployed Streamlit on Heroku with WINDOWS ?
There are excellent tutorials for the deployment of Streamlit with Heroku but unfortunately for me, it is for Linux. Maybe I have missed it, but I haven’t seen anything for windows.
Following the indications given here: https://devcenter.heroku.com/articles/getting-started-with-python#define-a-procfile
it seems that Pocfile for Linux should be Pocfile.windows, and these files are different. It seems that there are 3 required files for Windows:
- requirements.txt
- manage.py
- Pocfile.windows
My requirements.txt file is obtained by pip freeze > requirements.txt in the virtual environment of Streamlit (with packages pywin32 and pywinpty removed)
I have copied the manage.py file given by Heroku.
I have tried several modifications of the original Pocfile.windows given by Heroku to put Streamlit in, but none of them gave me a successful deployment.
The result I obtained was this:
- Build successful
- But opening the app gives error H14
2020-05-08T08:37:37.000000+00:00 app[api]: Build succeeded
2020-05-08T08:38:57.237980+00:00 heroku[router]: at=error code=H14 desc=“No web processes running” method=GET path="/" host=test0slbar.herokuapp.com request_id=10a1d7e6-5671-4015-9019-e5e2d3eeca1a fwd=“89.159.19.111” dyno= connect= service= status=503 bytes= protocol=https
I had tried heroku ps:scale web=1
as recommended on https://devcenter.heroku.com/articles/error-codes#h14-no-web-dynos-running but didn’t work.
I have been struggling with this for days!
Thanks in advance for any help that can be given.
Kind regards
AZL