lib/capistrano/tasks/puma.cap in capistrano3-puma-0.1.2 vs lib/capistrano/tasks/puma.cap in capistrano3-puma-0.1.3
- old
+ new
@@ -1,9 +1,5 @@
-namespace :deploy do
- after :finished, 'puma:smart_restart'
-end
-
namespace :load do
task :defaults do
set :puma_role, :app
set :puma_env, -> { fetch(:rack_env, fetch(:rails_env, 'production')) }
# Configure "min" to be the minimum number of threads to use to answer
@@ -89,9 +85,10 @@
invoke 'puma:phased-restart'
else
invoke 'puma:restart'
end
end
+ after 'deploy:finished', 'puma:smart_restart'
def puma_workers
fetch(:puma_workers) || 0
end