about summary refs log tree commit diff
path: root/config/puma.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-07-17 16:56:10 +0200
committerGitHub <noreply@github.com>2019-07-17 16:56:10 +0200
commite9cc17bbeab1f1d47b5a919adb0ae7eae4eee791 (patch)
tree21f25d570ea6f57d58c24eec6e65aab8b96f816b /config/puma.rb
parent5ccd011cc3bafc00a557dabbb47da004f3d4a381 (diff)
parente91bf82083ac390a0cf229d8e94fa412fdec57ff (diff)
Merge pull request #1164 from ThibG/glitch-soc/cherry-pick-upstream
Cherry-pick changes from upstream
Diffstat (limited to 'config/puma.rb')
-rw-r--r--config/puma.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/puma.rb b/config/puma.rb
index 1afdb1c6d..6a96867d5 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -2,9 +2,9 @@ threads_count = ENV.fetch('MAX_THREADS') { 5 }.to_i
 threads threads_count, threads_count
 
 if ENV['SOCKET']
-  bind 'unix://' + ENV['SOCKET']
+  bind "unix://#{ENV['SOCKET']}"
 else
-  port ENV.fetch('PORT') { 3000 }
+  bind "tcp://#{ENV.fetch('BIND', '127.0.0.1')}:#{ENV.fetch('PORT', 3000)}"
 end
 
 environment ENV.fetch('RAILS_ENV') { 'development' }