Geoffrey Plitt
Geoffrey Plitt

Reputation: 171

heroku: "no such type as worker"

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?

Upvotes: 5

Views: 649

Answers (2)

Alex Spurling
Alex Spurling

Reputation: 55924

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

Upvotes: 1

Will
Will

Reputation: 2961

You say your Profile has such and such, but it needs to be Procfile

Upvotes: 0

Related Questions