Skip to content

Instantly share code, notes, and snippets.

@sprite2005
Created September 9, 2010 20:32
Show Gist options
  • Save sprite2005/572503 to your computer and use it in GitHub Desktop.
Save sprite2005/572503 to your computer and use it in GitHub Desktop.
Dir["#{Rails.root}/app/jobs/*.rb"].each { |file| require file }
ENV["REDIS_URL"] ||= "redis://dev.vipwithme.com:6379"
uri = URI.parse(ENV["REDIS_URL"])
Resque.redis = Redis.new(:host => uri.host, :port => uri.port)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment