简体   繁体   中英

Couldn't find that process type (web) error on heroku

I'm trying to deploy a Django application to heroku, but i keep getting the following error when trying to scale my application

heroku ps:scale web=1

Error:

Scaling dynos... !
 !    Couldn't find that process type (web).

I don't understand what am i doing wrong here, my file is called Procfile , it is located at the root of my project, here is how i defined it:

Procfile

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

follow this steps

  1. remove existing build packs heroku buildpacks:clear
  2. add them again using index option heroku buildpacks:add
  3. add empty commit and push the changes

OR try this one step by step

  1. remove your procfile
  2. git commit
  3. add a new procfile with the exact name "Procfile"
  4. commit again
  5. git push heroku master

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