Permalink
Browse files

Better explain the REDIS_DB and REDIS_DB_FOR_RESQUE config vars

  • Loading branch information...
1 parent 7bfd9c2 commit 6e1e0be398a3517063f442e43de43726c8c9058a @philc philc committed Feb 28, 2013
Showing with 7 additions and 4 deletions.
  1. +2 −0 config/deploy_targets/common.rb
  2. +4 −2 environment.rb
  3. +1 −2 lib/script_environment.rb
@@ -23,6 +23,8 @@ def self.common_options
db_password: "",
redis_host: "localhost",
redis_port: 6379,
+ redis_db: 0,
+ redis_db_for_resque: 1,
# This can be a comma-separated list of OPENID providers.
openid_providers: "https://www.google.com/accounts/o8/ud",
# This hostname is used when generating URLs to commits in emails.
View
@@ -17,8 +17,10 @@
REDIS_HOST = "localhost"
REDIS_PORT = 6379
-REDIS_DB = 0
-RESQUE_DB = 1
+
+# These Redis databases are used by Barkeep for caching and Resque jobs. Redis uses integers for DB names.
+REDIS_DB = 0
+REDIS_DB_FOR_RESQUE = 1
# A comma-separate list of OpenID provider URLs for signing in your users.
# If you provide more than one, users will receive a UI allowing to pick which service to use to authenticate.
@@ -17,8 +17,7 @@
require "lib/redis_manager"
require "backtrace_shortener"
-Resque.redis = Redis.new(:host => REDIS_HOST, :port => REDIS_PORT,
- :db => RESQUE_DB)
+Resque.redis = Redis.new(:host => REDIS_HOST, :port => REDIS_PORT, :db => REDIS_DB_FOR_RESQUE)
# Make the developer experience better by shortening backtraces.
BacktraceShortener.monkey_patch_the_exception_class! unless ENV["RACK_ENV"] == "production"

0 comments on commit 6e1e0be

Please sign in to comment.