about summary refs log tree commit homepage
path: root/examples
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-03-17 02:33:26 +0000
committerEric Wong <normalperson@yhbt.net>2011-03-17 02:33:50 +0000
commit39cab8b630d41d8d002f5d4f65280bc63706c74f (patch)
tree5c62b29ece4ba4f6efcaf51786b39fe5dea105b3 /examples
parent1f29269eabd806f1e0cb9ca7fd4231d8588d7669 (diff)
downloadraindrops-39cab8b630d41d8d002f5d4f65280bc63706c74f.tar.gz
Whee!
Diffstat (limited to 'examples')
-rw-r--r--examples/watcher_demo.ru2
-rw-r--r--examples/zbatery.conf.rb9
2 files changed, 7 insertions, 4 deletions
diff --git a/examples/watcher_demo.ru b/examples/watcher_demo.ru
index 2d74b09..36a9ed3 100644
--- a/examples/watcher_demo.ru
+++ b/examples/watcher_demo.ru
@@ -3,7 +3,5 @@
 #
 # 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.conf.rb b/examples/zbatery.conf.rb
index 7feee32..8c78ce4 100644
--- a/examples/zbatery.conf.rb
+++ b/examples/zbatery.conf.rb
@@ -4,5 +4,10 @@
 Rainbows! do
   use :ThreadSpawn
 end
-stderr_path "/var/log/rainbows/stderr.log"
-stdout_path "/var/log/rainbows/stdout.log"
+log_dir = "/var/log/zbatery"
+if File.writable?(log_dir) && File.directory?(log_dir)
+  stderr_path "#{log_dir}/raindrops-demo.stderr.log"
+  stdout_path "#{log_dir}/raindrops-demo.stdout.log"
+  user "www-data", "www-data"
+  listen "/tmp/.raindrops"
+end