get puma to bind to socket
This commit is contained in:
parent
49d75710f9
commit
e486057d9e
@ -59,7 +59,7 @@ task :deploy do
|
|||||||
|
|
||||||
on :launch do
|
on :launch do
|
||||||
in_path(fetch(:current_path)) do
|
in_path(fetch(:current_path)) do
|
||||||
invoke :'puma:phased_restart'
|
invoke :'puma:hard_restart'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -24,6 +24,8 @@ environment ENV.fetch("RAILS_ENV") { "development" }
|
|||||||
# Specifies the `pidfile` that Puma will use.
|
# Specifies the `pidfile` that Puma will use.
|
||||||
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
||||||
|
|
||||||
|
bind 'unix://tmp/sockets/puma.sock'
|
||||||
|
|
||||||
# Specifies the number of `workers` to boot in clustered mode.
|
# Specifies the number of `workers` to boot in clustered mode.
|
||||||
# Workers are forked web server processes. If using threads and workers together
|
# Workers are forked web server processes. If using threads and workers together
|
||||||
# the concurrency of the application would be max `threads` * `workers`.
|
# the concurrency of the application would be max `threads` * `workers`.
|
||||||
|
Loading…
Reference in New Issue
Block a user