Last active
August 29, 2015 14:10
-
-
Save costa/3612086d36c29d3d1b19 to your computer and use it in GitHub Desktop.
Rails-Pusher integration: config/initializers
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
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