Skip to content

Instantly share code, notes, and snippets.

@paceline
Last active December 21, 2015 00:09
Show Gist options
  • Save paceline/6218456 to your computer and use it in GitHub Desktop.
Save paceline/6218456 to your computer and use it in GitHub Desktop.
Simple but still: Run multiple rack-based apps with one config.ru file:
# Sinatra
require './toolbox.rb'
# Sproutcore
require 'sproutcore'
project = SC::Project.load "./sproutcore", :parent => SC.builtin_project
scApp = SC::Rack::Service.new(project, :allow_from_ips => '127.0.0.1')
# Run
run Rack::URLMap.new "/" => Sinatra::Application, "/apps" => scApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment