diff options
author | Evan Weaver <eweaver@twitter.com> | 2008-11-22 12:47:59 -0800 |
---|---|---|
committer | Evan Weaver <eweaver@twitter.com> | 2008-11-22 12:48:52 -0800 |
commit | 2710d631aa4ecff45bf39374c5dd30de41d5cc23 (patch) | |
tree | 229cb97e14f44141caebaf8c4afacbb47022a06e /examples/builder.rb | |
parent | 559edfb1fbf18e9496a4235831fd49c5b0d8b459 (diff) | |
download | unicorn-2710d631aa4ecff45bf39374c5dd30de41d5cc23.tar.gz |
Diffstat (limited to 'examples/builder.rb')
-rw-r--r-- | examples/builder.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/examples/builder.rb b/examples/builder.rb deleted file mode 100644 index 5f0803a..0000000 --- a/examples/builder.rb +++ /dev/null @@ -1,29 +0,0 @@ -require 'mongrel' - -class TestPlugin < GemPlugin::Plugin "/handlers" - include Mongrel::HttpHandlerPlugin - - def process(request, response) - STDERR.puts "My options are: #{options.inspect}" - STDERR.puts "Request Was:" - STDERR.puts request.params.to_yaml - end -end - -config = Mongrel::Configurator.new :host => "127.0.0.1" do - load_plugins :includes => ["mongrel"], :excludes => ["rails"] - daemonize :cwd => Dir.pwd, :log_file => "mongrel.log", :pid_file => "mongrel.pid" - - listener :port => 3000 do - uri "/app", :handler => plugin("/handlers/testplugin", :test => "that") - uri "/app", :handler => Mongrel::DirHandler.new(".") - load_plugins :includes => ["mongrel", "rails"] - end - - trap("INT") { stop } - run -end - -config.join - - |