Permalink
Browse files

created config.ru

  • Loading branch information...
1 parent d71c952 commit d5cb0fae4111d1453426759658b46193c2bb0cee @derailed committed Mar 21, 2010
Showing with 18 additions and 0 deletions.
  1. +18 −0 config.ru
View
@@ -0,0 +1,18 @@
+#------------
+# Mongo3 Sessions Options
+#
+# @@options defines where Mongo3 puts its sessions, which can be either mongo or memcache
+# if @@options is not defined mongo at localhost:27017 is used
+#
+# For customized sessions with Mongo uncomment and modify this line:
+# @@options={:protocol=>"mongo", :host=>"localhost", :port=>"11211", :db_name=>"mongo3_session", :cltn_name=>"sessions"}
+#
+# For Memcache session uncomment and modify this line:
+# @@options={:protocol=>"memcached", :host=>"localhost", :port=>"11211", :namespace=>"mongo3_session"}
+#
+#------------
+
+require 'rubygems'
+require 'sinatra'
+require File.join(File.dirname(__FILE__), %w[lib app.rb])
+run Sinatra::Application

0 comments on commit d5cb0fa

Please sign in to comment.