Skip to content

Instantly share code, notes, and snippets.

@ianmurrays
Created March 8, 2012 22:40
Show Gist options
  • Save ianmurrays/2003918 to your computer and use it in GitHub Desktop.
Save ianmurrays/2003918 to your computer and use it in GitHub Desktop.
Faye Private_Pub Config
# Run with: rackup faye.ru -s thin -E production
require "yaml"
require "faye"
begin
require "private_pub"
rescue LoadError
require "bundler/setup"
require "private_pub"
end
PrivatePub.load_config(File.expand_path("../config/private_pub.yml", __FILE__), ENV["RAILS_ENV"] || "development")
run Faye::RackAdapter.new(:mount => "/faye", :timeout => 45, :extensions => [PrivatePub.faye_extension])
development:
server: "http://localhost:9292/faye"
secret_token: "secret"
test:
server: "http://localhost:9292/faye"
secret_token: "secret"
production:
server: "http://production.host:9292/faye"
secret_token: "asdfasdf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment