gitlabhq/gitlabhq — pull request #5474 by vollnhals (2013-10-29 17:02:23+00:00)
Title: Respect the configured redis URL when initializing the session store

It was not possible to start Gitlab with a redis server running on another host or port. Every other subsystem that uses redis respects the settings in config/resque.yml.

This patch uses the configured url if present and falls back to localhost:6379

Compare this code to the relevant lines in config/environments/production.rb