From: Lin Jen-Shin <godfat-hOE/xeEBYYIdnm+yROfE0A@public.gmane.org> To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Cc: Lin Jen-Shin <godfat-hOE/xeEBYYIdnm+yROfE0A@public.gmane.org> Subject: [PATCH] Add -N or --no-default-middleware option. Date: Tue, 29 Jan 2013 12:06:00 +0800 [thread overview] Message-ID: <1359432360-23122-1-git-send-email-godfat@godfat.org> (raw) This would prevent Unicorn (Zbatery) from adding default middleware, as if RACK_ENV were always none. (not development nor deployment) This is implemented in Unicorn, so we only need to update the option parser here. Discussion thread on Unicorn mailing list: http://rubyforge.org/pipermail/mongrel-unicorn/2013-January/001675.html --- bin/zbatery | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/zbatery b/bin/zbatery index 99ca46e..392e5c3 100755 --- a/bin/zbatery +++ b/bin/zbatery @@ -59,6 +59,11 @@ opts = OptionParser.new("", 24, ' ') do |opts| ENV["RACK_ENV"] = e end + opts.on("-N", "--no-default-middleware", + "do not load middleware implied by RACK_ENV") do |e| + rackup_opts[:no_default_middleware] = true + end + opts.on("-D", "--daemonize", "run daemonized in the background") do |d| rackup_opts[:daemonize] = !!d end -- 1.8.1.1 _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying
next reply other threads:[~2013-01-29 4:14 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-29 4:06 Lin Jen-Shin [this message] [not found] ` <1359432360-23122-1-git-send-email-godfat-hOE/xeEBYYIdnm+yROfE0A@public.gmane.org> 2013-01-29 4:49 ` Eric Wong -- strict thread matches above, loose matches on Subject: below -- 2013-01-29 3:44 Lin Jen-Shin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://yhbt.net/rainbows/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1359432360-23122-1-git-send-email-godfat@godfat.org \ --to=godfat-hoe/xeebyyidnm+yrofe0a@public.gmane.org \ --cc=rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org \ --subject='Re: [PATCH] Add -N or --no-default-middleware option.' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: ../../rainbows.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).