examples/simple/conf/config.rb in nitro-0.2.0 vs examples/simple/conf/config.rb in nitro-0.3.0

- old
+ new

@@ -6,45 +6,36 @@ # # code: # * George Moschovitis <gm@navel.gr> # # (c) 2004 Navel, all rights reserved. -# $Id: config.rb 106 2004-10-25 11:31:11Z gmosx $ +# $Id: config.rb 124 2004-11-01 12:34:17Z gmosx $ require "n/std" require "n/properties" require "n/logger" require "n/config" +require "n/og" +require "n/server/cluster" +require "simple/conf/requires" + $name = "Simple" $root_dir = "simple/root" -# Main logger - -$log = Logger.new("simple/logs/app.log", 10); - -# Events logger - -$elog = Logger.new("simple/logs/events.log", "weekly"); - -require "n/db" -require "n/app/cluster" - -require "simple/conf/requires" - $srv_extension_map = { "sx" => ["text/html", -# N::App::AutoLoginFilter.new( - N::App::PageHandler.new +# N::AutoLoginFilter.new( + N::PageHandler.new # ) ], "si" => ["text/html", - N::App::PageHandler.new + N::PageHandler.new ], "rx" => ["text/html", -# N::App::AutoLoginFilter.new( - N::App::CodeHandler.new +# N::AutoLoginFilter.new( + N::CodeHandler.new # ) ] } # enable distributed sessions. @@ -59,13 +50,10 @@ module Config def initialize_sitemap end - # - # def initialize_shaders -# $default_shader = N::NilShader.new $default_shader = N::Shader.new("simple", "#{$root_dir}/shader/shader.xsl") end def initialize_events $events = $event_manager = N::EventManager.new($elog)