From 056dce5f26dc54ba74581b78b0ac9f0baf4a8c31 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Wed, 1 Oct 2014 11:10:54 +0200 Subject: [PATCH] Deploy with monit recovery expectation --- config/deploy.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/deploy.rb b/config/deploy.rb index b101a340..b18e9be2 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -54,6 +54,7 @@ namespace :deploy do end execute :chown, "-R www-data:www-data", release_path execute :chown, "-R www-data:www-data", release_path.join('public/assets/') + run "kill -9 $(lsof -i:9022 -t); true" # kill counters, will reboot itself execute :touch, release_path.join('tmp/restart.txt') end end