Permalink
Browse files

Merge pull request #85 from charly22/patch-1

REDIS_BACKEND_DB env variable added
  • Loading branch information...
2 parents 4cbf3c0 + afd84de commit cd85e8be852d6ea33e26668b9e55218d2492e91a @chrisboulton committed Mar 7, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 bin/resque
View
@@ -31,8 +31,12 @@ if(empty($QUEUE)) {
}
$REDIS_BACKEND = getenv('REDIS_BACKEND');
+$REDIS_BACKEND_DB = getenv('REDIS_BACKEND_DB');
if(!empty($REDIS_BACKEND)) {
- Resque::setBackend($REDIS_BACKEND);
+ if (empty($REDIS_BACKEND_DB))
+ Resque::setBackend($REDIS_BACKEND);
+ else
+ Resque::setBackend($REDIS_BACKEND, $REDIS_BACKEND_DB);
}
$logLevel = 0;

0 comments on commit cd85e8b

Please sign in to comment.