about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-03-16 16:38:46 -0700
committerEric Wong <normalperson@yhbt.net>2011-03-16 16:38:46 -0700
commit57c9f70fb3c14ed94f4fb2445a8a4168f8c5253b (patch)
treee6cdffd3175d0b3371ed1b882af83fcfb9e7b7f1
parent3656a61bfb24ac76bc47d314327c01f9fd10a717 (diff)
downloadraindrops-57c9f70fb3c14ed94f4fb2445a8a4168f8c5253b.tar.gz
-rw-r--r--config.ru2
-rw-r--r--examples/middleware.ru (renamed from examples/config.ru)2
-rw-r--r--examples/watcher.ru4
-rw-r--r--examples/watcher_demo.ru9
-rw-r--r--examples/zbatery.conf.rb (renamed from examples/zbatery.config.rb)2
5 files changed, 16 insertions, 3 deletions
diff --git a/config.ru b/config.ru
deleted file mode 100644
index b8f6160..0000000
--- a/config.ru
+++ /dev/null
@@ -1,2 +0,0 @@
-require "raindrops"
-run Raindrops::Watcher.new
diff --git a/examples/config.ru b/examples/middleware.ru
index c31b983..642016b 100644
--- a/examples/config.ru
+++ b/examples/middleware.ru
@@ -1,4 +1,4 @@
-# sample stand-alone rackup application
+# sample stand-alone rackup application for Raindrops::Middleware
 require 'rack/lobster'
 require 'raindrops'
 use Raindrops::Middleware
diff --git a/examples/watcher.ru b/examples/watcher.ru
new file mode 100644
index 0000000..a3e7fdb
--- /dev/null
+++ b/examples/watcher.ru
@@ -0,0 +1,4 @@
+# Sample standalone Rack application, recommended use is with Zbatery
+# See zbatery.conf.rb
+require "raindrops"
+run Raindrops::Watcher.new
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)
diff --git a/examples/zbatery.config.rb b/examples/zbatery.conf.rb
index 38aa4b6..7feee32 100644
--- a/examples/zbatery.config.rb
+++ b/examples/zbatery.conf.rb
@@ -4,3 +4,5 @@
 Rainbows! do
   use :ThreadSpawn
 end
+stderr_path "/var/log/rainbows/stderr.log"
+stdout_path "/var/log/rainbows/stdout.log"