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!
-
ActionController::AbstractRequest.relative_url_root = "/rails"
However, there was a deprecation warning - and it seemed not to work at all. I then stumbled upon this which seems to work:
RIGHT!
-
config.action_controller.relative_url_root = "/rails"
If you care - my virtual host looks something like:
-
<virtualhost *:80>
-
ServerName localhost
-
DocumentRoot /Library/WebServer/Documents
-
RailsBaseURI /rails
-
-
</virtualhost>
-
José Ignacio
-
Pat Murray
