Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve redis configuration (work in progress) #185

Closed
wants to merge 1 commit into from
Closed

Improve redis configuration (work in progress) #185

wants to merge 1 commit into from

Conversation

amtrack
Copy link

@amtrack amtrack commented Oct 11, 2014

First work for gitlabhq/gitlabhq#8013 (not tested yet)

* Use environment variable REDIS_URL or config.yml
* Replace config keys socket, host, port with url
@@ -49,21 +61,19 @@ def audit_usernames

# Build redis command to write update event in gitlab queue
def redis_command
if redis.empty?
if not redis.has_key?("url")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer single-quoted strings when you don't need string interpolation or special symbols.

@coveralls
Copy link

coveralls commented Feb 8, 2015

Coverage Status

Coverage increased (+0.6%) to 98.875% when pulling 1e7d3bd on amtrack:redis_configuration into 7e74d05 on gitlabhq:master.

@amtrack amtrack closed this Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants