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:
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:
config.action_controller.relative_url_root = “/rails”
If you care – my virtual host looks something like:
From → Social Web