From: Eugen Rochko Date: Sat, 25 Aug 2018 22:13:22 +0000 (+0200) Subject: Revert "Default puma to running on localhost only." (#8444) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=33054840280186789aa286fbfdf3aa76f09bdb36;p=mastodon.git Revert "Default puma to running on localhost only." (#8444) * Revert "Default puma to running on localhost only. (#8429)" This reverts commit 2a59c6a5e7ea1794232a12a3d0b46b24d8a9c858. --- diff --git a/config/puma.rb b/config/puma.rb index d31ae40c8..0397b8920 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' }