Sha256: 8c0ebbd0fe038b4277801c96078502955fe4ed1c4cb82e59a90d887fa9763f06
Contents?: true
Size: 1.86 KB
Versions: 1
Compression:
Stored size: 1.86 KB
Contents
# = Blog 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 197 2004-12-21 13:50: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' require 'nitro/builders/form' require 'lib/blog' $name = 'Nitro Blog' $blog_username = 'George Moschovitis' $blog_password = 'navelrulez' $services = { :index => N::BlogService # 'users' => N::UsersService } $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 ) =begin # lets play with the ULTRA-COOL breakpointer library. require 'breakpoint' Breakpoint.activate_drb =end 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.7.0 | examples/blog/config.rb |