H14 error in heroku - “no web processes running”

后端 未结 6 1018
傲寒
傲寒 2020-12-05 12:42

error H14 happen while deploying to heroku this is my procfile:

web: gunicorn -w 4 -b 0.0.0.0:$PORT -k gevent main:app

log on heroku:

6条回答
  •  悲&欢浪女
    2020-12-05 13:13

    I don't have the reputation to reply to the correct comment, but for me the issue was that I didn't have the run.gunicorn.sh file in my root directory, this resulted in the same "No web processes running" error.

    If you don't have this file, create it with contents:

    gunicorn -b :5000 --access-logfile - --error-logfile - build:app
    

    Where 'build' is the name of your python file (build.py in this case) and app is the name of your app in the code.

    Also make sure that gunicorn is included in requirements.txt, like others have already pointed out.

提交回复
热议问题