Can't configure RedisToGo url for rake apn:sender #19

Closed
fbjork opened this Issue Mar 13, 2012 · 3 comments

Comments

Projects
None yet
4 participants

fbjork commented Mar 13, 2012

I cannot get apn_sender to use my RedisToGo url, it uses the default localhost regardless of me setting this in a resque.rb initializer:

if ENV["REDISTOGO_URL"] && uri = URI.parse(ENV["REDISTOGO_URL"])
  Resque.redis = Redis.new(host: uri.host, port: uri.port, password: uri.password)
end

I have this in my Procfile on Heroku:

apn: bundle exec rake apn:sender
*** Starting worker to send apple notifications in the background from Fredriks-iMac.local:53010:apple_push_notifications

deepj commented Mar 30, 2012

Create apn_sender.rake file in lib/tasks and put this into there

require 'apn/tasks'

task 'apn:sender'  => :environment
task 'apn:senders' => :environment
Owner

arthurnn commented May 4, 2013

Is this still happening?

arthurnn closed this Jun 1, 2013

Contributor

lukeasrodgers commented Nov 4, 2014

This fixed the issue for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment