Skip to content

Instantly share code, notes, and snippets.

@evanjmg
Created July 9, 2016 14:42
Show Gist options
  • Save evanjmg/4a482aef7e0422d06ceedb4ac9fcc0b5 to your computer and use it in GitHub Desktop.
Save evanjmg/4a482aef7e0422d06ceedb4ac9fcc0b5 to your computer and use it in GitHub Desktop.
# add pusher to your GemFile
gem 'pusher'
# then in create a config/initializers/pusher.rb
require 'pusher'
Pusher.logger = Rails.logger
Pusher.encrypted = true
Pusher.app_id = ENV['PUSHER_APP_ID']
Pusher.key = ENV['PUSHER_KEY']
Pusher.secret = ENV['PUSHER_SECRET']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment