From 2b2045834e94faf39c4ba2c91797627231304051 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 26 Aug 2018 00:13:22 +0200 Subject: [PATCH] Revert "Default puma to running on localhost only." (#8444) * Revert "Default puma to running on localhost only. (#8429)" This reverts commit 01896d770d9e3c08676a11d6e6c0e4c8ea5d1a0f. --- config/puma.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/puma.rb b/config/puma.rb index d31ae40c88..0397b89204 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -4,8 +4,7 @@ threads threads_count, threads_count if ENV['SOCKET'] then bind 'unix://' + ENV['SOCKET'] else - port_num = ENV.fetch('PORT') { 3000 } - bind "tcp://127.0.0.1:#{port_num}" + port ENV.fetch('PORT') { 3000 } end environment ENV.fetch('RAILS_ENV') { 'development' }