config.ru in gunark-rubycas-server-0.8.0.20090427 vs config.ru in gunark-rubycas-server-0.8.0.20090430

- old
+ new

@@ -1,20 +1,28 @@ require 'rubygems' require 'rack' $APP_NAME = 'rubycas-server' $APP_ROOT = File.dirname(File.expand_path(__FILE__)) -$: << $APP_ROOT + "/lib" -require File.dirname(File.expand_path(__FILE__)) + '/lib/casserver' +if File.exists?("#{$APP_ROOT}/tmp/debug.txt") + require 'ruby-debug' + Debugger.wait_connection = true + Debugger.start_remote +end -$LOG = Logger.new("casserver.log") -$LOG.level = Logger::DEBUG +$: << $APP_ROOT + "/lib" +require 'casserver/load_picnic' +require 'picnic' +require 'casserver' + CASServer.create if $CONF.uri_path map($CONF.uri_path) do + # FIXME: this probably isn't the smartest way of remapping the themes dir to uri_path/themes + use Rack::Static, $CONF[:static] if $CONF[:static] run CASServer end else run CASServer end