File: config.ru

package info (click to toggle)
ruby-faye-websocket 0.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 236 kB
  • sloc: ruby: 1,209; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# Run using your favourite server:
#
#     thin start -R examples/config.ru -p 7000
#     rainbows -c examples/rainbows.conf -E production examples/config.ru -p 7000

require 'bundler/setup'
require File.expand_path('../app', __FILE__)

Faye::WebSocket.load_adapter('thin')
Faye::WebSocket.load_adapter('rainbows')

run App