lib/capistrano/tasks/puma.cap in h2ocube_rails_puma-0.0.1 vs lib/capistrano/tasks/puma.cap in h2ocube_rails_puma-0.0.2

- old
+ new

@@ -24,9 +24,16 @@ execute :bundle, "exec pumactl -S #{state_path} phased-restart;true" end end end + desc 'Cold Restart puma' + task :cold_restart do + invoke 'puma:stop' + sleep 3 + invoke 'puma:start' + end + def state_path "#{shared_path}/sockets/puma.state" end before 'deploy:published', 'puma:restart'