raindrops.git  about / heads / tags
real-time stats for preforking Rack servers
blob 8c78ce40e29e7df7eb692a3ee9d9a7b963d113d1 485 bytes (raw)
$ git show v0.5.0:examples/zbatery.conf.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
# Used for running Raindrops::Watcher, which requires a multi-threaded
# Rack server capable of streaming a response.  Threads must be used,
# so Zbatery is recommended: http://zbatery.bogomip.org/
Rainbows! do
  use :ThreadSpawn
end
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

git clone https://yhbt.net/raindrops.git