From 556c2055b4908d052fab2b5d39857eb26aa2d340 Mon Sep 17 00:00:00 2001 From: Vladimir Sharshov Date: Mon, 19 Mar 2012 18:48:54 +0400 Subject: [PATCH] Enable unicorn zero time deploy --- lib/recipes/unicorn.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/recipes/unicorn.rb b/lib/recipes/unicorn.rb index 880005cbe..388c48902 100644 --- a/lib/recipes/unicorn.rb +++ b/lib/recipes/unicorn.rb @@ -18,8 +18,9 @@ Capistrano::Configuration.instance(:must_exist).load do run "#{try_sudo} kill -s USR2 `cat #{unicorn_pid}`" rescue warn 'deploy:reload FAILED' end task :restart, :roles => :app, :except => { :no_release => true } do - stop - start # blue pill will do it? + reload + #stop + #start # blue pill will do it? end end end