raindrops.git  about / heads / tags
real-time stats for preforking Rack servers
blob 7a6e67567f4877408a2ac2f104ec733b30f379e8 373 bytes (raw)
$ git show HEAD:examples/watcher_demo.ru	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
# frozen_string_literal: false
# This is a snippet of the config that powers
# https://yhbt.net/raindrops-demo/
# This may be used with the packaged zbatery.conf.rb
#
# zbatery -c zbatery.conf.ru watcher_demo.ru -E none
require "raindrops"
use Raindrops::Middleware
listeners = %w(
  0.0.0.0:9418
  0.0.0.0:80
  /tmp/.r
)
run Raindrops::Watcher.new :listeners => listeners

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