Skip to content
Snippets Groups Projects
Commit 2a59c6a5 authored by M Somerville's avatar M Somerville Committed by Eugen Rochko
Browse files

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

parent 93537c55
No related branches found
No related tags found
No related merge requests found
......@@ -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' }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment