mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:52:11 +08:00
DEV: bin/unicorn -x to run without sidekiq
This commit is contained in:
parent
802ad0dc61
commit
f9f490e957
16
bin/unicorn
16
bin/unicorn
|
@ -25,8 +25,24 @@ if !ARGV.include?("-E") &&
|
|||
end
|
||||
|
||||
ENV["UNICORN_PORT"] ||= "9292"
|
||||
|
||||
if ARGV.delete("-x")
|
||||
puts "Running without sidekiq"
|
||||
ENV["UNICORN_SIDEKIQS"] = "0"
|
||||
end
|
||||
|
||||
ENV["UNICORN_SIDEKIQS"] ||= "1"
|
||||
|
||||
end
|
||||
|
||||
if ARGV.include?("--help")
|
||||
fork do
|
||||
load Gem.bin_path('unicorn', 'unicorn')
|
||||
end
|
||||
Process.wait
|
||||
puts "Extra Discourse Options:"
|
||||
puts " -x run without sidekiq"
|
||||
exit
|
||||
end
|
||||
|
||||
load Gem.bin_path('unicorn', 'unicorn')
|
||||
|
|
Loading…
Reference in New Issue
Block a user