Skip to content

Instantly share code, notes, and snippets.

@yorzi
Created January 20, 2011 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorzi/787610 to your computer and use it in GitHub Desktop.
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