简体   繁体   中英

Heroku No such process type web defined in procfile

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 ?

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

heroku ps:scale worker=1

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM