fixes capistrano unicorn restart task

This commit is contained in:
rgarcia
2015-08-21 17:06:35 +02:00
parent e69688e91f
commit c39657cf5c
2 changed files with 4 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ namespace :deploy do
%w(start stop force-stop restart upgrade reopen-logs).each do |command|
task command.to_sym do
on roles(:app), in: :sequence, wait: 5 do
sudo "/etc/init.d/unicorn_#{fetch(:full_app_name)} #{command}"
execute "/etc/init.d/unicorn_#{fetch(:full_app_name)} #{command}"
end
end
end