Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add redis config file

  • Loading branch information...
commit 91d11a9dbff46db15db2e7dc4fcd70bf916283d8 1 parent 882fe5a
@lukebaker lukebaker authored
View
2  app/models/earl.rb
@@ -45,7 +45,7 @@ def munge_and_notify(options = {})
# so we do this manually
current_user = User.find_by_email(email)
- r = Redis.new
+ r = Redis.new(:host => REDIS_CONFIG['hostname'])
thekey, source_filename = r.blpop(redis_key, (60*60*3).to_s) #Timeout after 3 hours
View
1  config/initializers/load_config.rb
@@ -0,0 +1 @@
+REDIS_CONFIG = YAML.load_file("#{Rails.root}/config/redis.yml")
View
1  config/redis.yml
@@ -0,0 +1 @@
+hostname: localhost
Please sign in to comment.
Something went wrong with that request. Please try again.