capistrano: fix sleep calls.
Minor optimization for `cap production deploy --dry-run`. Sleep on the server instead of in the client.
This commit is contained in:
@@ -5,9 +5,9 @@ namespace :unicorn do
|
||||
on roles(:app) do
|
||||
within current_path do
|
||||
kill_unicorn("SIGQUIT")
|
||||
sleep(10)
|
||||
execute :sleep, 10
|
||||
kill_unicorn("SIGTERM")
|
||||
sleep(2)
|
||||
execute :sleep, 2
|
||||
kill_unicorn("SIGKILL")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user