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:
evazion
2019-08-12 18:22:44 -05:00
parent d0d71fcdc8
commit 5acc75d21b

View File

@@ -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