Tag: private pub

PrivatePub未定义错误Rails 3.2私人酒吧

我想在我的rails应用程序中使用私有pub gem。 我用railscast 316实现 在rails g private_pub:install 我的private_pub.yml文件: development: server: “http://0.0.0.0:9292/faye” secret_token: “secret” test: server: “http://0.0.0.0:9292/faye” secret_token: “secret” production: server: “http://0.0.0.0/faye” secret_token: “98ec77eb7077c9899dc53f003abc4d6a0170512a57feab126ed5a32b114e3613” signature_expiration: 3600 # one hour 我的private_pub.ru文件 # Run with: rackup private_pub.ru -s thin -E production require “bundler/setup” require “yaml” require “faye” require “private_pub” Faye::WebSocket.load_adapter(‘thin’) PrivatePub.load_config(File.expand_path(“../config/private_pub.yml”, __FILE__), ENV[“RAILS_ENV”] || “development”) run PrivatePub.faye_app Faye::Logging.log_level […]