Skip to content

Instantly share code, notes, and snippets.

@jonpaul
Created July 26, 2012 19:54
Show Gist options
  • Save jonpaul/3184147 to your computer and use it in GitHub Desktop.
Save jonpaul/3184147 to your computer and use it in GitHub Desktop.
resque initializer
Resque.redis = Redis.new(:host => APP_CONFIG[:redis], :port => APP_CONFIG[:redis_port])
Dir["#{Rails.root}/app/workers/*.rb"].each { |file| require file }
require 'resque/failure/multiple'
require 'resque/failure/redis'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment