Skip to content

Instantly share code, notes, and snippets.

@johnreilly
Created April 29, 2011 18:02
Show Gist options
  • Save johnreilly/948724 to your computer and use it in GitHub Desktop.
Save johnreilly/948724 to your computer and use it in GitHub Desktop.
Mount rails app in rack cascade
#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