H14 Error in Heroku - "No Web Processes Running"

H14 Heroku No web processes running for Flask, Python

I solved the problem by removing Procfile and re-creating it. Git for some reason did not recognize this Procfile and named it something like Pro/143/file (I don't know why).

So, if you encounter such a problem, try to re-create your Procfile. Anyway, it helps for me.

P.S I left the contents of the file as before: web: gunicorn app:app.

As you can see, everything works:
Sample Image

How to fix ' code=H14 desc=No web processes running ' error on flask heroku app

Usually it is either

  1. Heroku does not know which web process to start. This is fixed with Procfile.

Procfile:

web: python myServer.py

  1. Web process is not listening to right port. This is fixed by web server start 6 environment configuration

Get the right port from PORT variable:

port = int(os.environ.get('PORT', 5000))

See: Deploying Flask app to Heroku



Related Topics



Leave a reply



Submit