<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,17 +3,25 @@ require 'rack'
 
 $APP_NAME = 'rubycas-server'
 $APP_ROOT = File.dirname(File.expand_path(__FILE__))
-$: &lt;&lt; $APP_ROOT + &quot;/lib&quot;
 
-require File.dirname(File.expand_path(__FILE__)) + '/lib/casserver'
+if File.exists?(&quot;#{$APP_ROOT}/tmp/debug.txt&quot;)
+  require 'ruby-debug'
+  Debugger.wait_connection = true
+  Debugger.start_remote
+end
+
+$: &lt;&lt; $APP_ROOT + &quot;/lib&quot;
 
-$LOG = Logger.new(&quot;casserver.log&quot;)
-$LOG.level = Logger::DEBUG
+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</diff>
      <filename>config.ru</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7f6b3f1764f8c6aaaa77b18e9639a00fa1f33f8b</id>
    </parent>
  </parents>
  <author>
    <name>zuk</name>
    <email>zuk@roughest.net</email>
  </author>
  <url>http://github.com/gunark/rubycas-server/commit/f640d604ef550ad689baf54849f5656636d1a2c1</url>
  <id>f640d604ef550ad689baf54849f5656636d1a2c1</id>
  <committed-date>2009-04-30T11:50:20-07:00</committed-date>
  <authored-date>2009-04-30T11:50:20-07:00</authored-date>
  <message>- should now work with Passenger 2.2 thanks to a revised config.ru rackup file
- you can now enable ruby-debug debugging under Passenger by creating a tmp/debug.txt file and restarting apache</message>
  <tree>fc14ab5f3131abb40b3e209082bf885c9297e1ac</tree>
  <committer>
    <name>zuk</name>
    <email>zuk@roughest.net</email>
  </committer>
</commit>
