How to start delayed job workers in production mode

Mohit Jain picture Mohit Jain · Jul 25, 2011 · Viewed 8.1k times · Source

I was following railscast for delayed job. Things are working perfectly on my machine. How can start delayed_job workers in production mode?

I am using delayed_job gem,(2.1.4)

Answer

Mohit Jain picture Mohit Jain · Jul 25, 2011
RAILS_ENV=production script/delayed_job start

For Rails 4

RAILS_ENV=production bin/delayed_job start

Solved my problem.

It may give you an error that tmp directory doesn't exists. Just create one and run previous command again..