diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-03-16 16:38:46 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-03-16 16:38:46 -0700 |
commit | 57c9f70fb3c14ed94f4fb2445a8a4168f8c5253b (patch) | |
tree | e6cdffd3175d0b3371ed1b882af83fcfb9e7b7f1 /examples/watcher_demo.ru | |
parent | 3656a61bfb24ac76bc47d314327c01f9fd10a717 (diff) | |
download | raindrops-57c9f70fb3c14ed94f4fb2445a8a4168f8c5253b.tar.gz |
Diffstat (limited to 'examples/watcher_demo.ru')
-rw-r--r-- | examples/watcher_demo.ru | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/watcher_demo.ru b/examples/watcher_demo.ru new file mode 100644 index 0000000..2d74b09 --- /dev/null +++ b/examples/watcher_demo.ru @@ -0,0 +1,9 @@ +# This is the exact config that powers http://raindrops-demo.bogomips.org/ +# This is used with zbatery.conf.rb +# +# zbatery -c zbatery.conf.ru watcher_demo.ru -E none +require "raindrops" +require "clogger" # http://clogger.rubyforge.org/ +use Clogger, :format => Clogger::Format::Rack_1_0, :logger => $stdout +use Raindrops::Middleware +run Raindrops::Watcher.new :listeners => %w(0.0.0.0:80 /tmp/.raindrops) |