H14 error in heroku - “no web processes running”

后端 未结 6 1004
傲寒
傲寒 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条回答
  •  萌比男神i
    2020-12-05 13:18

    • Login to your Heroku dashboard and open your projects.
    • Go to Settings.
    • Delete heroku/python from the list of buildpacks
    • Then click Add buildpack → Choose "Python" → Save Changes.
    • Activate your environment in your code.
    • Run heroku ps:scale web=1.

    And you're done!

提交回复
热议问题