# File lib/picnic/server.rb, line 5 def start handler, conf = case @conf.server when "console" ARGV.clear IRB.start exit when "mongrel" prep_mongrel when "webrick" prep_webrick end # preload the apps in order to show any startup errors when # the app is run from the command line (otherwise they would only # show up after the first request to the web server) reload! handler.run(self, conf) end