gearheads
/
mastodon
Archived
2
0
Fork 0

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

gh/stable
Daigo 3 Dango 2019-07-15 18:51:36 -10:00 committed by Eugen Rochko
parent 9b1d3e4acb
commit b4c9a860e5
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ threads threads_count, threads_count
if ENV['SOCKET'] if ENV['SOCKET']
bind "unix://#{ENV['SOCKET']}" bind "unix://#{ENV['SOCKET']}"
else 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 end
environment ENV.fetch('RAILS_ENV') { 'development' } environment ENV.fetch('RAILS_ENV') { 'development' }