Bind to socket
This commit is contained in:
parent
46f3ad0bdd
commit
c320963b25
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
root_dir = File.expand_path('..', __dir__).freeze
|
||||||
|
|
||||||
# Puma can serve each request in a thread from an internal thread pool.
|
# Puma can serve each request in a thread from an internal thread pool.
|
||||||
# The `threads` method setting takes two numbers: a minimum and maximum.
|
# The `threads` method setting takes two numbers: a minimum and maximum.
|
||||||
# Any libraries that use thread pools should be configured to match
|
# Any libraries that use thread pools should be configured to match
|
||||||
|
@ -9,6 +11,11 @@
|
||||||
threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }
|
threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }
|
||||||
threads threads_count, threads_count
|
threads threads_count, threads_count
|
||||||
|
|
||||||
|
# Bind the server to "url". "tcp://", "unix://" and "ssl://" are the only
|
||||||
|
# accepted protocols.
|
||||||
|
#
|
||||||
|
bind "unix://#{File.join(root_dir, 'tmp', 'sockets', 'puma.sock')}"
|
||||||
|
|
||||||
# Specifies the `port` that Puma will listen on to receive requests;
|
# Specifies the `port` that Puma will listen on to receive requests;
|
||||||
# default is 3000.
|
# default is 3000.
|
||||||
#
|
#
|
||||||
|
|
Reference in a new issue