From 33054840280186789aa286fbfdf3aa76f09bdb36 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 2a59c6a5e7ea1794232a12a3d0b46b24d8a9c858. --- 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' }