Permalink
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (17 sloc) 684 Bytes
#------------
# 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