File: config.ru

package info (click to toggle)
ruby-faye 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,792 kB
  • sloc: javascript: 14,833; ruby: 5,068; makefile: 30
file content (17 lines) | stat: -rw-r--r-- 613 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Run using your favourite async server:
#
#     thin start -R examples/ruby/config.ru -p 9292
#     rainbows -c examples/ruby/rainbows.conf -E production examples/ruby/config.ru -p 9292
#
# If you run using one of these commands, the webserver is loaded before this
# file, so Faye::WebSocket can figure out which adapter to load. If instead you
# run using `rackup`, you need the `load_adapter` line below.
#
#     rackup -E production -s thin examples/ruby/config.ru -p 9292

require 'rubygems'
require 'bundler/setup'
require File.expand_path('../app', __FILE__)
Faye::WebSocket.load_adapter('thin')

run App