# File lib/mongrel_config/init.rb, line 43
43:   def run
44:     # must require this here since rails and camping don't like eachother
45:     if RUBY_PLATFORM =~ /mswin/
46:       require 'mongrel_config/win32_app'
47:       $mongrel_rails_service = @mongrel_script
48:     else
49:       require 'mongrel_config/app'
50:     end
51: 
52:     resources = GemPlugin::Manager.instance.resource "mongrel_config", "/"
53:     $PID_FILE = @pid_file
54: 
55:     $server = Mongrel::Camping::start(@host,@port,@uri,Configure)
56: 
57:     puts "** Configure is running at http://#{@host}:#{@port}#{@uri}"
58:     if RUBY_PLATFORM !~ /mswin/
59:       trap("INT") { 
60:         $server.stop 
61:       }
62:       puts "Use CTRL-C to quit."
63:     else
64:       puts "Use CTRL-Pause/Break to quit."
65:     end
66: 
67:     # add our log directory
68:     $server.register("/log", Mongrel::DirHandler.new("log"))
69:     $server.register("/config/resources", Mongrel::DirHandler.new(resources))
70: 
71:     $server.acceptor.join
72:   end