public
Description: Vanilla in Ruby
Homepage: http://lazyatom.com
Clone URL: git://github.com/lazyatom/vanilla-rb.git
lazyatom (author)
Fri Oct 16 07:31:52 -0700 2009
commit  9b1ba50901ea539166ceeb0239975d798e0f6e36
tree    0d759e42e8fc497d548c86e9c10808f523bf068e
parent  ca1299db94c7703da75079f32308a93926a0adaa
vanilla-rb / config.ru
100644 10 lines (9 sloc) 0.416 kb
1
2
3
4
5
6
7
8
9
10
$:.unshift File.join(File.dirname(__FILE__), *%w[lib])
require 'vanilla'
 
app = Vanilla::App.new(ENV['VANILLA_CONFIG'])
use Rack::Session::Cookie, :key => 'vanilla.session',
                           :path => '/',
                           :expire_after => 2592000,
                           :secret => app.config[:secret]
use Rack::Static, :urls => ["/public"], :root => File.join(File.dirname(__FILE__))
run app