Sha256: 8cd9cc867d4e5030154945d574f3cd8a6b34ec3526cff5c54e348d5aceefc14e

Contents?: true

Size: 1.57 KB

Versions: 1

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 188 2004-12-10 14:14:17Z 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 => "blog",
		: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 => "blog",
		: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

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.6.0 bin/proto/config.rb