Created
March 8, 2012 22:40
-
-
Save ianmurrays/2003918 to your computer and use it in GitHub Desktop.
Faye Private_Pub Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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