Browse Source

Make puma bind address configurable with BIND env var (#11326)

pull/4/head
Daigo 3 Dango 4 years ago
committed by Eugen Rochko
parent
commit
b4c9a860e5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config/puma.rb

+ 1
- 1
config/puma.rb View File

@ -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…
Cancel
Save