Sha256: 0742b47719fb7dddd11ad662e2da1c9775d4349ebf792a4a65e3b8170374c110
Contents?: true
Size: 849 Bytes
Versions: 1
Compression:
Stored size: 849 Bytes
Contents
# * George Moschovitis <gm@navel.gr> # (c) 2005 Navel, all rights reserved. # $Id: run.rb 1 2005-04-11 11:04:30Z gmosx $ require 'nitro' require 'og' require 'blog' include Nitro Nitro.run do |conf| # Og.create_schema = false # Session.store_type = :drb Caching::Fragments.store = Caching::FileStore.new Localization.add( :en => 'conf/locales/en.yml', :de => 'conf/locales/de.yml' ) Og.connect( :adapter => 'psql', :database => 'blog', :user => 'postgres', :password => 'navelrulez', :connection_count => 3 ) Rendering.shader = XSLTShader.new('src/xsl/style.xsl', LocalizationShader.new( RubyShader.new( CompressShader.new ) ) ) conf.dispatcher = Dispatcher.new( :root => BlogController, 'xml' => XmlController ) conf.set( :name => 'Nitro Blog', :host => '127.0.0.1', :port => 9999 ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.16.0 | examples/blog/run.rb |