about summary refs log tree commit homepage
path: root/examples/watcher_demo.ru
diff options
context:
space:
mode:
Diffstat (limited to 'examples/watcher_demo.ru')
-rw-r--r--examples/watcher_demo.ru9
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)