mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 00:11:53 +00:00
Merge pull request #85 from charly22/patch-1
REDIS_BACKEND_DB env variable added
This commit is contained in:
commit
cd85e8be85
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user