Browse Source

Do not set port for puma if it is bound to unix socket (#2289)

Setting port after binding a unix socket puma listen to both of an unix
socket and TCP/IP, which is not a desired behavior.
closed-social-v3
Akihiko Odaki 7 years ago
committed by Eugen
parent
commit
0f852c6f74
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      config/puma.rb

+ 2
- 1
config/puma.rb View File

@ -3,9 +3,10 @@ threads threads_count, threads_count
if ENV['SOCKET'] then
bind 'unix://' + ENV['SOCKET']
else
port ENV.fetch('PORT') { 3000 }
end
port ENV.fetch('PORT') { 3000 }
environment ENV.fetch('RAILS_ENV') { 'development' }
workers ENV.fetch('WEB_CONCURRENCY') { 2 }

Loading…
Cancel
Save