A platform for community discussion. Free, open, simple.
DEV: adjust bin/unicorn to support -p properly
Samb8667c77c448
diff --git a/bin/unicorn b/bin/unicornindex 4bd8e9e7d1e..80f3cca452e 100755--- a/bin/unicorn+++ b/bin/unicorn@@ -19,6 +19,11 @@ if !ARGV.include?("-E") &&Pathname.new(__FILE__).realpath))end+ # we do not want to listen on 2 ports, so lets fix it+ if (idx = ARGV.index("-p")) && (port = ARGV[idx + 1].to_i) > 0+ ENV["UNICORN_PORT"] ||= port.to_s+ end+ENV["UNICORN_PORT"] ||= "9292"ENV["UNICORN_SIDEKIQS"] ||= "1"