Skip to content

Commit 7b23a50

Browse files
authored
Merge pull request #13 from oniramarf/master
Adding documentation about Redis backend for workers
2 parents 9b5217c + 990eac6 commit 7b23a50

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ It also supports the following additional features:
3636
- Has built in support for `setUp` and `tearDown` methods, called pre and post
3737
jobs
3838

39+
This port is originally based on the works of Chris Boulton et al, see <https://github.com/chrisboulton/php-resque>
40+
3941
## Requirements
4042

4143
- PHP 5.3+
@@ -276,6 +278,15 @@ custom prefix to separate the Resque data:
276278
$ PREFIX=my-app-name bin/resque
277279
```
278280

281+
### Setting Redis backend ###
282+
283+
When you have the Redis database on a different host than the one the workers
284+
are running, you must set the `REDIS_BACKEND` environment variable:
285+
286+
```sh
287+
$ REDIS_BACKEND=my-redis-ip:my-redis-port bin/resque
288+
```
289+
279290
### Forking
280291

281292
Similarly to the Ruby versions, supported platforms will immediately fork after

0 commit comments

Comments
 (0)