1
0
Fork 0

Bind to socket

This commit is contained in:
Alex Kotov 2018-11-29 01:00:57 +05:00
parent 46f3ad0bdd
commit c320963b25
No known key found for this signature in database
GPG key ID: 4E831250F47DE154

View file

@ -1,5 +1,7 @@
# frozen_string_literal: true
root_dir = File.expand_path('..', __dir__).freeze
# Puma can serve each request in a thread from an internal thread pool.
# The `threads` method setting takes two numbers: a minimum and maximum.
# Any libraries that use thread pools should be configured to match
@ -9,6 +11,11 @@
threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }
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;
# default is 3000.
#