From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Neukirchen To: jtindall@soasta.com Cc: Rack Development Subject: Re: Can't find documentation on how to access Rackup --options References: X-Draft-From: ("nnimap+localhost:rack-devel" 3354) Date: Fri, 04 Sep 2015 13:03:45 +0200 In-Reply-To: (jtindall@soasta.com's message of "Fri, 4 Sep 2015 01:48:29 -0700 (PDT)") Message-ID: <8737yuwini.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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 http://chneukirchen.org