Can't find documentation on how to access Rackup --options

12 views
Skip to first unread message

jtin...@soasta.com

unread,
Sep 4, 2015, 4:48:30 AM9/4/15
to Rack Development
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.

Many thanks!

James

Christian Neukirchen

unread,
Sep 4, 2015, 7:03:49 AM9/4/15
to jtin...@soasta.com, Rack Development
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 <chneuk...@gmail.com> http://chneukirchen.org
Reply all
Reply to author
Forward
0 new messages