Sha256: 1af61ee5db456f7d425862fb394751c05c332cb966d1829481083f34e34266d2

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

# = YourApp Configuration 
#
# You can find additional configuration variables in
# lib/n/config.rb. Just copy the variables you want to
# change in this file
#
# WARNING: if you want to change the backend dont forget
# to change it in the DEBUG and LIVE configurations.
#
# code: 
# * George Moschovitis  <gm@navel.gr>
#
# (c) 2004 Navel, all rights reserved.
# $Id: config.rb 194 2004-12-20 20:23:57Z gmosx $

require "nitro"
require "glue/logger"
require "nitro/config"

require "og"
require "nitro/l10n"
require "nitro/events"
require "glue/mixins"
require "nitro/sitemap"

require "glue/number"
require "glue/string"
require "glue/array"
require "glue/hash"
require "nitro/html"

require "nitro/server/webrick"
require "nitro/server/shaders"

$name = "Your Application"

$srv_address = $appsrv_address = "127.0.0.1"
$srv_url = "http://#$srv_address:#$srv_port"

if $DBG # DEBUG mode

	$og = Og::Database.new(
		:address => "localhost",
#		:backend => "mysql",
		:backend => "psql",
		:database => "proto",
		:user => "postgres",
		:password => "navelrulez",
		:connection_count => 3
	)

	# dont compress when debuging, more readable code.
	$shader = N::XSLTShader.new("#$root_dir/style.xsl",
							N::RubyShader.new
						)

else # LIVE mode

	$appsrv_port = 8080

	$og = Og::Database.new(
		:address => "localhost",
#		:backend => "mysql",
		:backend => "psql",
		:database => "proto",
		:user => "postgres",
		:password => "navelrulez",
		:connection_count => 20
	)

	$shader = N::XSLTShader.new("#$root_dir/style.xsl",
							N::RubyShader.new(
								N::CompressShader.new
							)
						)

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nitro-0.8.0 bin/proto/config.rb
nitro-0.7.0 bin/proto/config.rb