A platform for community discussion. Free, open, simple.
DEV: Allow `UNICORN_PORT` env to be set.
Guo Xiang Tan9e63ebdf0f57
diff --git a/bin/unicorn b/bin/unicornindex 77c45fa4e96..b890a840688 100755--- a/bin/unicorn+++ b/bin/unicorn@@ -19,11 +19,8 @@ if !ARGV.include?("-E") &&Pathname.new(__FILE__).realpath))end- ENV["UNICORN_PORT"] = "9292"-- if !ENV["UNICORN_SIDEKIQS"]- ENV["UNICORN_SIDEKIQS"] = "1"- end+ ENV["UNICORN_PORT"] ||= "9292"+ ENV["UNICORN_SIDEKIQS"] ||= "1"endload Gem.bin_path('unicorn', 'unicorn')