Problem with deployement on Heroku with WINDOWS

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

tengo el mismo problema, por favor alguien tiene alguna referencia o alguien me podría ayudar, favor, llevo días tratando de solucionar inicialmente: Problema con Heroku en windows / requisito pywin32 == 228.

Hey @AZlearn, on the off chance you’re still having this problem:

To deploy Streamlit on Heroku, you need to pass the $PORT environment variable (from within your Heroku instance) to your Streamlit app. Here’s one tutorial that does so by dynamically writing a .streamlit/config.toml file with the correct port value:

https://towardsdatascience.com/deploy-streamlit-on-heroku-9c87798d2088

(Note that their provided code snippet for setup.sh is missing a closing quotation mark)

Hi @AustinC,

I already solved my problem, but thanks for your answer.
Your tutorial is great !

Thanks

I have the same issue, I tried above solutions but didn’t work for me

I cant even deploy this simple streamlit app. https://github.com/aletisunil/test/tree/master
Please kindly help me, i’m facing this issue for past 2 days (created multiple files and tested but not use)
Thanks in advance

Hi @Sunil_Aleti,

I just followed step by step what is indicated in this tutorial

and it worked for me.

Hope that will work for you too.

Regards

2 Likes