From ad6d6f13bb6c516f71b765919f7e5b473a89b830 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 5 Jul 2016 17:05:02 +0300 Subject: [PATCH] Remove unnecessary restart --- config/deploy.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index 3fecbc3..343cc2a 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -48,12 +48,12 @@ set :nginx_server_name, 'cfp.openfest.org' namespace :deploy do - desc 'Restart application' - task :restart do - on roles(:app), in: :sequence, wait: 5 do - execute '/home/barf/restart-clarion-production-server' + after :restart, :clear_cache do + on roles(:web), in: :groups, limit: 3, wait: 10 do + # Here we can do anything such as: + # within release_path do + # execute :rake, 'cache:clear' + # end end end - - after :publishing, :restart end