Adds delayed jobs recipe for production, and some documentation added for running delayed jobs in local
This commit is contained in:
parent
6755328c4c
commit
98112b5a03
2 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue