Search code examples
ruby-on-rails-3workerforeman

QUEUE=* not found error on Foreman


I'm trying to use foreman to run my app locally, using the same Procfile I use when deploying my app on Heroku, where it works perfectly. However, when running foreman start on my terminal, foreman gives an error saying:

line 41: exec: QUEUE=*: not found

What I gather from this is that foreman doesn't recognize QUEUE=* as a command. So why does it work on Heroku? And what can I do to run the command exactly as it is run in production mode?


Solution

  • I ran into the same issue. You want to put the queue param at the end.

    eg: worker: bundle exec rake jobs:work QUEUE=hi