DEV: Allow UNICORN_PORT env to be set.

This commit is contained in:
Guo Xiang Tan 2018-08-07 16:20:08 +08:00
parent d5a7b818ba
commit 9e63ebdf0f

View File

@ -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"
end
load Gem.bin_path('unicorn', 'unicorn')