added redis socket support
In order to enable socket support I added another command line argument: `--sock` which can be true or false. If set to true the script will try to connect via sockets to the redis host provided via the `--redis` flag. In that case the port will be omitted.
This commit is contained in:
parent
ac5d254d68
commit
f6fa7d281a
2 changed files with 8 additions and 2 deletions
|
@ -22,6 +22,7 @@ exports.googleanalytics = {
|
|||
|
||||
var redis_conf = argv.redis || '127.0.0.1:6379';
|
||||
exports.database = {
|
||||
sock: argv['sock'] || false,
|
||||
type: 'redis',
|
||||
prefix: '#scrumblr#',
|
||||
host: redis_conf.split(':')[0] || '127.0.0.1',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue