better capistrano kill command

This commit is contained in:
2014-10-02 17:19:51 +02:00
parent b8ef4943bd
commit 12131497c2
+1 -1
View File
@@ -54,7 +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 :kill, capture("lsof -i:9022 -t") # kill counters, will reboot itself
execute :touch, release_path.join('tmp/restart.txt')
end
end