Skip to content

Commit

Permalink
add redis config file
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebaker committed Jan 26, 2011
1 parent 882fe5a commit 91d11a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/earl.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def munge_and_notify(options = {})
# so we do this manually # so we do this manually
current_user = User.find_by_email(email) 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 thekey, source_filename = r.blpop(redis_key, (60*60*3).to_s) #Timeout after 3 hours


Expand Down
1 change: 1 addition & 0 deletions config/initializers/load_config.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
REDIS_CONFIG = YAML.load_file("#{Rails.root}/config/redis.yml")
1 change: 1 addition & 0 deletions config/redis.yml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
hostname: localhost

0 comments on commit 91d11a9

Please sign in to comment.