forked from tobi/delayed_job
-
Notifications
You must be signed in to change notification settings - Fork 954
Rails 3 and Capistrano
cmar edited this page Feb 21, 2011
·
12 revisions
delayed_job comes with Capistrano recipes to start the script/delayed_job worker but you have to update your config/deploy.rb file to use them. There are 3 changes that need to be made:
require "delayed/recipes"
set :rails_env, "production" #added for delayed job
# Delayed Job
after "deploy:stop", "delayed_job:stop"
after "deploy:start", "delayed_job:start"
after "deploy:restart", "delayed_job:restart"