Deploying a rails app on a suburi
I followed the instructions at the phusion passenger site and couldn’t exactly get my app to run in a suburi – it kept trying to use that suburi when looking up routes.
I had found this:
WRONG!
[ruby]
ActionController::AbstractRequest.relative_url_root = “/rails”
[/ruby]
However, there was a deprecation warning – and it seemed not to work at all. I then stumbled upon this which seems to work:
RIGHT!
[ruby]
config.action_controller.relative_url_root = “/rails”
[/ruby]
If you care – my virtual host looks something like:
[code]
ServerName localhost
DocumentRoot /Library/WebServer/Documents
RailsBaseURI /rails
[/code]
-
José Ignacio
-
Pat Murray
-
emc lab