rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
From: Christian Neukirchen <chneukirchen@gmail.com>
To: jtindall@soasta.com
Cc: Rack Development <rack-devel@googlegroups.com>
Subject: Re: Can't find documentation on how to access Rackup --options
Date: Fri, 04 Sep 2015 13:03:45 +0200	[thread overview]
Message-ID: <8737yuwini.fsf@gmail.com> (raw)
In-Reply-To: <c3d5aa54-b6c8-49de-8803-ed56ff9fc27b@googlegroups.com> (jtindall@soasta.com's message of "Fri, 4 Sep 2015 01:48:29 -0700 (PDT)")

jtindall@soasta.com writes:

> Hi All,
>
> I've searched high and low and just can't find any mention of how to access 
> the custom options passed in to Rack via the rackup options like so: rackup 
> --options arg1=3
>
> Can anyone point me in the direction of documentation for this or tell me 
> how it's done? I need to access these in order to pass them on to a Sinatra 
> app that I'm running via Rack Cascade.

AFAICS this is not possible, because these options are only passed to
the underlying webserver.  But you can use standard environment
variables to pass options to your Rack application.

-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org

      reply	other threads:[~2015-09-04 11:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-04  8:48 Can't find documentation on how to access Rackup --options jtindall
2015-09-04 11:03 ` Christian Neukirchen [this message]

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-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://groups.google.com/group/rack-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8737yuwini.fsf@gmail.com \
    --to=rack-devel@googlegroups.com \
    --cc=jtindall@soasta.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).