Sha256: 90c069d4a3c33ee224f7aa94d8654ca0d294730d17766a4879e6b160804df2a7

Contents?: true

Size: 783 Bytes

Versions: 1

Compression:

Stored size: 783 Bytes

Contents

# * George Moschovitis  <gm@navel.gr>
# (c) 2004-2005 Navel, all rights reserved.
# $Id: run.rb 260 2005-02-15 08:58:04Z gmosx $

Dir.chdir File.dirname(__FILE__)

require 'nitro'; include N
require 'og'

require 'lib/blog'

runner = Runner.new.setup

db = Og::Database.new(
#	:address => 'localhost',
#	:adapter => 'mysql',
	:adapter => 'psql',
#	:adapter => 'sqlite',
	:database => 'blog',
	:user => 'postgres',
	:password => 'navelrulez',
	:connection_count => 3
)

dispatcher = Dispatcher.new(BlogController, :xml => 'text/xml')

Rendering.shader = XSLTShader.new("#{dispatcher.root}/style.xsl",
	RubyShader.new(
		CompressShader.new
	)
)

conf = Conf.new(
	:name => 'Nitro Blog',
	:host => 'localhost',
	:port => 8069,
	:dispatcher => dispatcher,
	:db => db
)

runner.run(conf)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.10.0 examples/blog/run.rb