From b32412ef35a4c8142824e00321a626d040372228 Mon Sep 17 00:00:00 2001 From: wuyingren Date: Fri, 11 Dec 2020 13:11:55 +0800 Subject: [PATCH] revert BIND --- config/puma.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/puma.rb b/config/puma.rb index ffb21724e..224be7903 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -6,8 +6,7 @@ threads threads_count, threads_count if ENV['SOCKET'] bind "unix://#{ENV['SOCKET']}" else - #bind "tcp://#{ENV.fetch('BIND', '127.0.0.1')}:#{ENV.fetch('PORT', 3000)}" - bind "tcp://#{ENV.fetch('BIND', '0.0.0.0')}:#{ENV.fetch('PORT', 3000)}" + bind "tcp://#{ENV.fetch('BIND', '127.0.0.1')}:#{ENV.fetch('PORT', 3000)}" end environment ENV.fetch('RAILS_ENV') { 'development' }