We need to deploy a rails 3.2.12 app
to sub uri nbhy
on a ubuntu 12.04
server. The rails app
has 3 engines
a
Most likely the authentify
engine is doing a redirect to /user_menus
, instead of /nbhy/authentify
. Is this a custom Rails or Sinatra app that you have written? If so, you need to change/configure the code of authentify
to always append the current subdirectory under which the Rails app is hosted. You can get that from passenger by saying ENV['RAILS_RELATIVE_URL_ROOT']
in your code.
Rails is generating paths straight from http://6.95.225.93
instead of http://6.95.225.93/nbhy
.
You probably need to scope all your routes to "/nbhy".
config/routes.rb
scope "/nbhy" do
...
end