Skip to content

Instantly share code, notes, and snippets.

@yorzi
Created January 20, 2011 09:02
Show Gist options
  • Select an option

  • Save yorzi/787610 to your computer and use it in GitHub Desktop.

Select an option

Save yorzi/787610 to your computer and use it in GitHub Desktop.
deploy rails3 app to subdirectory and don't disturb local development url. Just make sure you are setting the config.ru in right way.
#config.fu
require ::File.expand_path('../config/environment', __FILE__)
if Rails.env.production?
map '/sub-folder-name' do
run YourApp::Application
end
else
run YouApp::Application
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment