Skip to content

Instantly share code, notes, and snippets.

@costa
Last active August 29, 2015 14:10
Show Gist options
  • Save costa/3612086d36c29d3d1b19 to your computer and use it in GitHub Desktop.
Save costa/3612086d36c29d3d1b19 to your computer and use it in GitHub Desktop.
Rails-Pusher integration: config/initializers
if defined? PusherFake
PusherFake.configure do |config|
config.logger = Rails.logger
config.verbose = true
# NOTE won't work with DJ pushing OR with a pre-defined port
config.socket_options = {host: ENV['DOMAIN_NAME'], port: config.send(:available_port)}
end
require 'pusher-fake/support/base' if ENV['FAKE_PUSHER'] # NOTE should be set for a single process only
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment