A platform for community discussion. Free, open, simple.
FEATURE: Allow the specification of an arbitrary unicorn listen address
Matt Palmer1ad270965cda
diff --git a/config/unicorn.conf.rb b/config/unicorn.conf.rbindex ffa0f2c26fd..373e235b3fa 100644--- a/config/unicorn.conf.rb+++ b/config/unicorn.conf.rb@@ -16,7 +16,7 @@ worker_processes (ENV["UNICORN_WORKERS"] || 3).to_iworking_directory discourse_path# listen "#{discourse_path}/tmp/sockets/unicorn.sock"-listen "#{(ENV["UNICORN_BIND_ALL"] ? "" : "127.0.0.1:")}#{(ENV["UNICORN_PORT"] || 3000).to_i}"+listen ENV["UNICORN_LISTENER"] || "#{(ENV["UNICORN_BIND_ALL"] ? "" : "127.0.0.1:")}#{(ENV["UNICORN_PORT"] || 3000).to_i}"if !File.exist?("#{discourse_path}/tmp/pids")FileUtils.mkdir_p("#{discourse_path}/tmp/pids")