From ac6ace3a978b4074b6af6de982e2b6543b7f42cb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Mar 2009 16:45:55 -0700 Subject: Add -s/--server switch for compatibility with rackup This allows config.ru files to be shared by rackup and unicorn without errors. --- bin/unicorn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/unicorn b/bin/unicorn index a13facc..ebf57c3 100755 --- a/bin/unicorn +++ b/bin/unicorn @@ -67,6 +67,11 @@ opts = OptionParser.new("", 24, ' ') do |opts| options[:pid] = File.expand_path(f) end + opts.on("-s", "--server SERVER", + "this flag only exists for compatibility") do |s| + warn "-s/--server only exists for compatibility with rackup" + end + # Unicorn-specific stuff opts.on("-l", "--listen {HOST:PORT|PATH}", "listen on HOST:PORT or PATH", -- cgit v1.2.3-24-ge0c7