lib/capistrano/tasks/puma.cap in h2ocube_rails_puma-0.0.3 vs lib/capistrano/tasks/puma.cap in h2ocube_rails_puma-0.0.4
- old
+ new
@@ -19,9 +19,18 @@
desc 'Restart puma'
task :restart do
on roles :app do
within release_path do
+ execute :bundle, "exec pumactl -S #{state_path} restart;true"
+ end
+ end
+ end
+
+ desc 'Phased restart puma'
+ task :phased_restart do
+ on roles :app do
+ within release_path do
execute :bundle, "exec pumactl -S #{state_path} phased-restart;true"
end
end
end