aboutsummaryrefslogtreecommitdiffstats
path: root/config/deploy.rb
diff options
context:
space:
mode:
authorLuc Donnet2015-06-04 15:27:07 +0200
committerLuc Donnet2015-06-04 15:27:07 +0200
commit8f6ebfb730cd46b400e38a01b1e3228de4be1148 (patch)
treed13172a6fdfea67f7fda95589aa49fccb6f6082e /config/deploy.rb
parent678112b7aa35705bf689454fb7d85b0373e627a5 (diff)
downloadchouette-core-8f6ebfb730cd46b400e38a01b1e3228de4be1148.tar.bz2
Use delayed job for asynchronous devise mail
Diffstat (limited to 'config/deploy.rb')
-rw-r--r--config/deploy.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index c69b0dd81..0060749c3 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -24,6 +24,7 @@ after "deploy:update", "deploy:cleanup", "deploy:group_writable"
after "deploy:update_code", "deploy:symlink_shared", "deploy:chouette_command", "deploy:gems"
# ugly workaround for bug https://github.com/capistrano/capistrano/issues/81
before "deploy:assets:precompile", "deploy:symlink_shared"
+after "deploy:restart", "delayed_job:restart"
# If you want to use command line options, for example to start multiple workers,
# define a Capistrano variable delayed_job_args:
@@ -92,3 +93,9 @@ namespace :deploy do
end
end
+
+namespace :delayed_job do
+ task :restart do
+ run "sudo /etc/init.d/chouette2 restart"
+ end
+end