From 39cab8b630d41d8d002f5d4f65280bc63706c74f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 17 Mar 2011 02:33:26 +0000 Subject: update examples for http://raindrops-demo.bogomips.org/ Whee! --- examples/watcher_demo.ru | 2 -- examples/zbatery.conf.rb | 9 +++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'examples') 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 -- cgit v1.2.3-24-ge0c7