Sha256: bbab9348e48a4f629d12c8ed8e30eac4d5ff4d477543feabc346d5c4ec026ce8

Contents?: true

Size: 883 Bytes

Versions: 1

Compression:

Stored size: 883 Bytes

Contents

# * George Moschovitis  <gm@navel.gr>
# (c) 2004-2005 Navel, all rights reserved.
# $Id: run.rb 270 2005-03-07 17:52:16Z gmosx $

# $:.unshift '/home/gmosx/navel/nitro/lib'

Dir.chdir File.dirname(__FILE__)

require 'nitro'; include N
require 'og'

require 'lib/blog'

# Og.create_schema = false
# Session.store_type = :drb

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 => '127.0.0.1',
	:port => 9999,
	:dispatcher => dispatcher,
	:db => db
)

runner.run(conf)

Version data entries

1 entries across 1 versions & 1 rubygems

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