Codeminer42/cm42-central

View on GitHub
config/initializers/pusher.rb

Summary

Maintainability
A
0 mins
Test Coverage
Pusher.logger = Rails.logger
if Rails.env.development? || Rails.env.test?
  Pusher.encrypted = false
  Pusher.app_id = ENV['PUSHER_APP_ID']
  Pusher.key = ENV['PUSHER_APP_KEY']
  Pusher.secret = ENV['PUSHER_APP_SECRET']
  Pusher.host = ENV['PUSHER_HOST']&.dup
  Pusher.port = ENV['PUSHER_PORT']&.to_i
end