Permalink
Browse files

Show off running multiple applications

  • Loading branch information...
bmizerany committed Feb 11, 2009
1 parent f87ce22 commit b3e366b8d18db558a7e4e1c58ac3797a45a2fa61
Showing with 21 additions and 0 deletions.
  1. +21 −0 config.multi-app.ru
View
@@ -0,0 +1,21 @@
+####
+## An example of running multiple Sinatra
+## applications in the same VM
+
+require 'sinatra/base'
+
+####
+## Rename this to config.ru
+##
+
+## map app1.com domain to app1.rb
+## NOTE: app1.rb is not included in this repo
+map "http://app1.com" do
+ run Sinatra("app1")
+end
+
+## map any path prefixed with /app2 to app2.rb
+## NOTE: app2.rb is not included in this repo
+map "/app2" do
+ run Sinatra("app2")
+end

0 comments on commit b3e366b

Please sign in to comment.