Changing the base URL for Rails 3 development

You can try mapping your rails app rack config to a different base_uri.
All you need to do is wrap the existing ‘run’ command in a map block

try doing this in your rails ‘config.ru‘ file:

map '/mydepartment' do
    run Myapp::Application
end

Now when you ‘rails server’ the app should be at localhost:3000/mydepartment .
Not sure if this will give you the desired outcome, but worth a try.

Leave a Comment