revert BIND

This commit is contained in:
wuyingren 2020-12-11 13:11:55 +08:00
parent decb67f691
commit b32412ef35

View file

@ -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' }