Skip to content

Commit

Permalink
Make puma bind address configurable with BIND env var (mastodon#11326)
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda authored and hiyuki2578 committed Oct 2, 2019
1 parent e3ac095 commit f0d685e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if ENV['SOCKET']
bind "unix://#{ENV['SOCKET']}"
else
bind "tcp://127.0.0.1:#{ENV.fetch('PORT', 3000)}"
bind "tcp://#{ENV.fetch('BIND', '127.0.0.1')}:#{ENV.fetch('PORT', 3000)}"
end

environment ENV.fetch('RAILS_ENV') { 'development' }
Expand Down

0 comments on commit f0d685e

Please sign in to comment.