From 17ff22507631b7f6a620d960a3a7afd61e3a8421 Mon Sep 17 00:00:00 2001 From: bgme Date: Tue, 27 Aug 2019 07:10:03 +0000 Subject: [PATCH] puma bind addresss --- config/puma.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/puma.rb b/config/puma.rb index 224be7903..ffb21724e 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -6,7 +6,8 @@ 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', '127.0.0.1')}:#{ENV.fetch('PORT', 3000)}" + bind "tcp://#{ENV.fetch('BIND', '0.0.0.0')}:#{ENV.fetch('PORT', 3000)}" end environment ENV.fetch('RAILS_ENV') { 'development' }