From afd84de15577becf5b7636d54cc460a09188335d Mon Sep 17 00:00:00 2001 From: Carlos Viglietta Date: Wed, 6 Feb 2013 12:37:12 -0200 Subject: [PATCH] REDIS_BACKEND_DB env variable added It's enable the possibility of use a different db index on redis backend --- bin/resque | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/resque b/bin/resque index 186e1ee..be85f67 100644 --- a/bin/resque +++ b/bin/resque @@ -30,8 +30,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;