From f4a5c938d461d9c5dc17f521c9efaaf352b931fa Mon Sep 17 00:00:00 2001 From: zedshaw Date: Sat, 25 Mar 2006 21:15:30 +0000 Subject: First crack at some advanced debugging features for mongrel and the console. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@121 19e92222-5c0b-0410-8929-a290d50e31e9 --- bin/mongrel_rails | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/mongrel_rails b/bin/mongrel_rails index 95d0970..f6e6e59 100644 --- a/bin/mongrel_rails +++ b/bin/mongrel_rails @@ -2,7 +2,6 @@ require 'rubygems' require 'yaml' require 'mongrel' - class Start < GemPlugin::Plugin "/commands" include Mongrel::Command::Base @@ -229,6 +228,16 @@ class Restart < GemPlugin::Plugin "/commands" end end + GemPlugin::Manager.instance.load "mongrel" => GemPlugin::INCLUDE, "rails" => GemPlugin::EXCLUDE + +require 'mongrel/debug' +ObjectTracker.configure +MongrelDbg.configure + Mongrel::Command::Registry.instance.run ARGV + +END { +Class.report_object_creations +} \ No newline at end of file -- cgit v1.2.3-24-ge0c7