Commit 819bb95d authored by Jonas Lundqvist's avatar Jonas Lundqvist
Browse files

reorder so integration2 connects to correct redis port

parent 436ec039
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,10 +6,10 @@ if !AppConfig.single_process_mode?
  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