Make puma bind address configurable with BIND env var (#11326)
parent
c56e6fd7a1
commit
4b91fb0ea7
|
@ -4,7 +4,7 @@ threads threads_count, threads_count
|
|||
if ENV['SOCKET']
|
||||
bind "unix://#{ENV['SOCKET']}"
|
||||
else
|
||||
bind "tcp://127.0.0.1:#{ENV.fetch('PORT', 3000)}"
|
||||
bind "tcp://#{ENV.fetch('BIND', '127.0.0.1')}:#{ENV.fetch('PORT', 3000)}"
|
||||
end
|
||||
|
||||
environment ENV.fetch('RAILS_ENV') { 'development' }
|
||||
|
|
Loading…
Reference in New Issue