Merge pull request #85 from charly22/patch-1

REDIS_BACKEND_DB env variable added
This commit is contained in:
Chris Boulton 2013-03-06 19:56:25 -08:00
commit cd85e8be85

View File

@ -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;