Skip to content

Conversation

@rspeicher
Copy link
Contributor

Went with an optional config/resque.yml file. If it exists, it reads
the connection info from that based on environment. Also added a section
to the installation guide.

For reasoning behind not just using Rails.root, see https://github.com/defunkt/resque#configuration

Closes #1486

dzaporozhets added a commit that referenced this pull request Sep 19, 2012
Add initializer for customizing Resque's Redis connection
@dzaporozhets dzaporozhets merged commit 6d8d32c into gitlabhq:master Sep 19, 2012
@davispuh
Copy link

there's little problem...

file ./config/initializers/resque.rb executes after ./config/initializers/4_resque_queues.rb

so resque.yml is not loaded and config is set only when Resque have already been started with default host:port

easy fix would be taking resque.rb content and putting at beginning of 4_resque_queues.rb

dzaporozhets added a commit that referenced this pull request Aug 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants