Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

REDIS_BACKEND_DB env variable added #85

Merged
merged 1 commit into from

3 participants

@charly22

It's enable the possibility of use a different db index on redis backend

@charly22 charly22 REDIS_BACKEND_DB env variable added
It's enable the possibility of use a different db index on redis backend
afd84de
@charly22
@ShonM

I deleted my comment, which was made without a morning coffee - heh. I like this more than #86 :+1:

@charly22
@chrisboulton
Owner

Thanks! :thumbsup:

@chrisboulton chrisboulton merged commit cd85e8b into chrisboulton:master

1 check passed

Details default The Travis build passed
@danhunsaker danhunsaker referenced this pull request
Closed

Added use database #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 6, 2013
  1. @charly22

    REDIS_BACKEND_DB env variable added

    charly22 authored
    It's enable the possibility of use a different db index on redis backend
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 1 deletion.
  1. +5 −1 bin/resque
View
6 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;
Something went wrong with that request. Please try again.