From 265ecc110894888efef8ee9bc74a9bb0e1222eaf Mon Sep 17 00:00:00 2001 From: Chris Broome Date: Tue, 4 Feb 2014 22:18:03 -0500 Subject: [PATCH] triggers a restart per capistrano deployment --- config/deploy.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/deploy.rb b/config/deploy.rb index e8e14fd..070f685 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -21,7 +21,9 @@ #} namespace :deploy do - + + after 'deploy:publishing', 'deploy:restart' + desc 'Restart application' task :restart do on roles(:app), in: :sequence, wait: 5 do @@ -30,6 +32,7 @@ end end + after :restart, :clear_cache do on roles(:web), in: :groups, limit: 3, wait: 10 do # Here we can do anything such as: @@ -42,6 +45,7 @@ # execute 'r.js -o #{release_path}/scripts/app.build.js' #end within release_path do + execute 'echo Release path: #{release_path}' execute 'r.js', ' -o scripts/app.build.js' end