Permalink
Browse files

reorder so integration2 connects to correct redis port

  • Loading branch information...
1 parent 436ec03 commit 819bb95dbdabd8baecfacb0939a970e3d43453d0 @pubis pubis committed May 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/initializers/resque.rb
@@ -6,10 +6,10 @@
if redis_to_go = ENV["REDISTOGO_URL"]
uri = URI.parse(redis_to_go)
Resque.redis = Redis.new(:host => uri.host, :port => uri.port, :password => uri.password)
- elsif AppConfig[:redis_url]
- Resque.redis = Redis.new(:host => AppConfig[:redis_url], :port => 6379)
elsif ENV['RAILS_ENV']== 'integration2'
Resque.redis = Redis.new(:host => 'localhost', :port => 6380)
+ elsif AppConfig[:redis_url]
+ Resque.redis = Redis.new(:host => AppConfig[:redis_url], :port => 6379)
end
end

0 comments on commit 819bb95

Please sign in to comment.