Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku: My Django app is giving Application Error H14: "No Web Processes Running"

Tags:

django

heroku

According to the Heroku site when I get error H14 "No Web Processes Running" it's because I need to scale up dynos by:

heroku ps:scale web=1

However, when I do that I get the following error:

Scaling web processes... failed
 !    No such type as web

Does anyone know how to fix this? I want to get my site back up!

When I run heroku ps I see nothing.

UPDATE: It's not detecting my Procfile. I don't have a Procfile explicitly and didn't use one before... is it absolutely necessary?

like image 493
user1328021 Avatar asked Oct 26 '25 13:10

user1328021


2 Answers

I ran into this recently as well, my web was working fine without any Procfile, until recently... My fix was simply to add a Procfile as follows:

web: python manage.py runserver 0.0.0.0:$PORT --noreload

Then push to heroku.

like image 182
bakkal Avatar answered Oct 28 '25 17:10

bakkal


For Heroku you need to add a Procfile.

  1. add a Procfile on same level like your manage.py file. It should be in your root directory. Be sure that you create a Procfile not a Procfile.txt or else just Procfile

  2. in your Procfile add:

    web: gunicorn projectname.wsgi

  3. add in your requirements.txt gunicorn

    gunicorn==20.0.4

If you activate automatic deploy you can try it again. If you can remove the app, remove it and deploy it again.

like image 41
Rene Montesardo Avatar answered Oct 28 '25 17:10

Rene Montesardo