Created
April 29, 2011 18:02
-
-
Save johnreilly/948724 to your computer and use it in GitHub Desktop.
Mount rails app in rack cascade
This file contains hidden or 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
#This is psudocode, but should be an okay example... | |
# Step 1: require rails' environment | |
require 'path/to/config/environment' | |
# Step 2: add rails app to cascade: | |
run Rack::Cascade.new([ | |
rack_app1, | |
MyRailsApp::Application, # Place rails in the cascade where you need it | |
rack_app2 | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment