Default puma to running on localhost only. (#8429)

th-downstream
M Somerville 6 years ago committed by Eugen Rochko
parent fddae332aa
commit 01896d770d

@ -4,7 +4,8 @@ threads threads_count, threads_count
if ENV['SOCKET'] then
bind 'unix://' + ENV['SOCKET']
else
port ENV.fetch('PORT') { 3000 }
port_num = ENV.fetch('PORT') { 3000 }
bind "tcp://127.0.0.1:#{port_num}"
end
environment ENV.fetch('RAILS_ENV') { 'development' }

Loading…
Cancel
Save