File: watcher_demo.ru

package info (click to toggle)
ruby-raindrops 0.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 500 kB
  • sloc: ruby: 3,537; ansic: 1,029; sh: 32; makefile: 9
file content (13 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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