get puma to bind to socket

This commit is contained in:
Torsten 2022-03-31 01:07:56 +03:00
parent 49d75710f9
commit e486057d9e
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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`.