]> cat aescling's git repositories - mastodon.git/commitdiff
Revert "Default puma to running on localhost only." (#8444)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 25 Aug 2018 22:13:22 +0000 (00:13 +0200)
committerGitHub <noreply@github.com>
Sat, 25 Aug 2018 22:13:22 +0000 (00:13 +0200)
* Revert "Default puma to running on localhost only. (#8429)"

This reverts commit 2a59c6a5e7ea1794232a12a3d0b46b24d8a9c858.

config/puma.rb

index d31ae40c886dd5c601b63771fee03ba158c4a304..0397b892048588048784cf95181d61d560f4ed05 100644 (file)
@@ -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' }