Heroku No such process type web defined in procfile

空扰寡人 提交于 2019-12-12 02:01:17

问题


When i'm runing heroku ps:scale web=1, I'm getting below error.

Scaling dynos... failed 
      No such process type web defined in Procfile.

My Procfile contains below code.

worker: python vot.py

I also did heroku run bash and the Procfile is there and file name is also correct.

How could i solve this ?


回答1:


Your heroku command has "web=1" but your Procfile has "worker". Try:

heroku ps:scale worker=1




回答2:


I dont see you define single process type "web" in your procfile. Follow on this heroku procfile and define python procfile :

web: gunicorn gettingstarted.wsgi --log-file -

This declares a single process type, web, and the command needed to run it. The name web is important here. It declares that this process type will be attached to the HTTP routing stack of Heroku, and receive web traffic when deployed.

Procfiles can contain additional process types.

worker: bundle exec rake jobs:work



来源:https://stackoverflow.com/questions/26180631/heroku-no-such-process-type-web-defined-in-procfile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!