Skip to content

Instantly share code, notes, and snippets.

@codespore
Created February 2, 2012 02:34
Show Gist options
  • Select an option

  • Save codespore/1721033 to your computer and use it in GitHub Desktop.

Select an option

Save codespore/1721033 to your computer and use it in GitHub Desktop.
Map method rackup file
class App1
def call(env)
[200, {}, ['App 1']]
end
end
class App2
def call(env)
[200, {}, ['App 2']]
end
end
use Rack::ContentType, 'text/plain'
use Rack::ContentLength
map '/' do
run App1.new
end
map '/admin' do
run App2.new
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment