Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

heroku: "no such type as worker"

Tags:

heroku

On Heroku, I'm trying to setup a worker-only (no web) dyno.

My Profile has:

worker: python common/elections_updater.py

But after I push and try to scale, I get this:

$heroku scale web=0 worker=1
Scaling web processes... done, now running 0
Scaling worker processes... failed
! No such type as worker

What am I doing wrong?

like image 658
Geoffrey Plitt Avatar asked Nov 12 '22 20:11

Geoffrey Plitt


1 Answers

I had the same problem. It turned out that while foreman doesn't care, Heroku doesn't like it if you don't have a space between your process type and your process command in your profile. The following did not work:

worker:python myapp.py

whereas the following does work:

worker: python myapp.py
like image 184
Alex Spurling Avatar answered Jan 04 '23 02:01

Alex Spurling