Skip to content

Instantly share code, notes, and snippets.

@knwang
Created June 2, 2011 07:08
Show Gist options
  • Save knwang/1004049 to your computer and use it in GitHub Desktop.
Save knwang/1004049 to your computer and use it in GitHub Desktop.
Rack config for faye-snake
require 'faye'
require File.dirname(__FILE__) + '/main'
Sinatra::Base.set(:run, false)
Sinatra::Base.set(:env, ENV['RACK_ENV'])
use Faye::RackAdapter, :mount => '/faye', :timeout => 45
run Sinatra::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment