summaryrefslogtreecommitdiff
path: root/config/deploy.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-08-23 08:30:45 -0600
committermo khan <mo@mokhan.ca>2014-08-23 08:30:45 -0600
commita3fde7ec90f2a7fba934fdf3b81359afdd18f6a3 (patch)
tree4e41d0f090ae6191a7b7463fedd50226a424af88 /config/deploy.rb
parent889ffa699596edea5e3d49ffcce27ce5abd73170 (diff)
restart delayed jobs and unicorn after deployment.
Diffstat (limited to 'config/deploy.rb')
-rw-r--r--config/deploy.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index 682b9474..f0b060ef 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -52,6 +52,8 @@ namespace :deploy do
on roles(:app), in: :sequence, wait: 5 do
# Your restart mechanism here, for example:
# execute :touch, release_path.join('tmp/restart.txt')
+ invoke 'delayed_job:restart'
+ invoke 'unicorn:restart'
end
end