Skip to content

Instantly share code, notes, and snippets.

@jesseproudman
Created September 8, 2010 22:02
Show Gist options
  • Save jesseproudman/570922 to your computer and use it in GitHub Desktop.
Save jesseproudman/570922 to your computer and use it in GitHub Desktop.
namespace :delayed_job do
desc "Start delayed_job process"
task :start, :roles => :app do
run "PATH=$PATH:/opt/ree/bin && cd #{current_path} && RAILS_ENV=#{rails_env} script/delayed_job_ctl start"
end
desc "Stop delayed_job process"
task :stop, :roles => :app do
run "PATH=$PATH:/opt/ree/bin && cd #{current_path} && RAILS_ENV=#{rails_env} script/delayed_job_ctl stop"
end
desc "Restart delayed_job process"
task :restart, :roles => :app do
run "PATH=$PATH:/opt/ree/bin && cd #{current_path} && RAILS_ENV=#{rails_env} script/delayed_job_ctl restart "
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment