diff options
author | M Somerville <dracos@users.noreply.github.com> | 2018-08-25 20:24:20 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-25 21:24:20 +0200 |
commit | 2a59c6a5e7ea1794232a12a3d0b46b24d8a9c858 (patch) | |
tree | 2b4b811727bc14b9560b00de8d97352b400b17e9 /config | |
parent | 93537c55605eea78aac5ceeec7ca080b3c3befca (diff) |
Default puma to running on localhost only. (#8429)
Diffstat (limited to 'config')
-rw-r--r-- | config/puma.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/puma.rb b/config/puma.rb index 0397b892048..d31ae40c886 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -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' } |