How to access the RackBaseURI in the Rack application?

37 views
Skip to first unread message

Thomas Marek

unread,
Nov 28, 2008, 1:58:47 PM11/28/08
to Phusion Passenger Discussions
Hello,

is there a way to access the RackBaseURI in the Rack application? Like
the RackEnv through the RACK_ENV environment variable.

My scenario:
I have a merb application and want to use the RackBaseURI feature.
For that i must hard code the base uri in the config.ru script at the
moment.
That makes the merb application not really flexible for deployment.

It would be great when the RackBaseURI would be accessible though a
RACK_BASE_URI environment variable.

Or is this already possible?

Thanks,
Thomas
Reply all
Reply to author
Forward
0 new messages