Adds delayed jobs recipe for production, and some documentation added for running delayed jobs in local

This commit is contained in:
Gopesh Tulsyan 2014-08-14 21:38:18 +05:30
parent 6755328c4c
commit 98112b5a03
2 changed files with 12 additions and 1 deletions

View file

@ -28,6 +28,10 @@ end
desc 'Deploys the current version to the server.'
task deploy: :environment do
to :prepare do
queue "cd #{deploy_to}/current && RAILS_ENV=production script/delayed_job stop"
end
deploy do
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
@ -38,8 +42,9 @@ task deploy: :environment do
to :launch do
queue "sudo /etc/init.d/apache2 restart"
queue "cd #{deploy_to}/current && RAILS_ENV=production script/delayed_job start"
end
invoke :'deploy:cleanup'
end
end