diff options
Diffstat (limited to 'config/puma.rb')
-rw-r--r-- | config/puma.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/puma.rb b/config/puma.rb index 1afdb1c6d..224be7903 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -1,10 +1,12 @@ +persistent_timeout ENV.fetch('PERSISTENT_TIMEOUT') { 20 }.to_i + threads_count = ENV.fetch('MAX_THREADS') { 5 }.to_i threads threads_count, threads_count if ENV['SOCKET'] - bind 'unix://' + ENV['SOCKET'] + bind "unix://#{ENV['SOCKET']}" else - port ENV.fetch('PORT') { 3000 } + bind "tcp://#{ENV.fetch('BIND', '127.0.0.1')}:#{ENV.fetch('PORT', 3000)}" end environment ENV.fetch('RAILS_ENV') { 'development' } |