Created
January 20, 2011 09:02
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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