gearheads
/
mastodon
Archived
2
0
Fork 0

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

gh/stable
M Somerville 2018-08-25 20:24:20 +01:00 committed by Eugen Rochko
parent 93537c5560
commit 2a59c6a5e7
1 changed files with 2 additions and 1 deletions

View File

@ -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' }