Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reorder so integration2 connects to correct redis port

  • Loading branch information...
commit 819bb95dbdabd8baecfacb0939a970e3d43453d0 1 parent 436ec03
@pubis pubis authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/initializers/resque.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.