diff --git a/config/deploy.rb b/config/deploy.rb index 0d71223..3914021 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -59,7 +59,7 @@ task :deploy do on :launch do in_path(fetch(:current_path)) do - invoke :'puma:phased_restart' + invoke :'puma:hard_restart' end end end diff --git a/config/puma.rb b/config/puma.rb index daaf036..d89538c 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -24,6 +24,8 @@ environment ENV.fetch("RAILS_ENV") { "development" } # Specifies the `pidfile` that Puma will use. pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" } +bind 'unix://tmp/sockets/puma.sock' + # Specifies the number of `workers` to boot in clustered mode. # Workers are forked web server processes. If using threads and workers together # the concurrency of the application would be max `threads` * `workers`.