Allow scrumblr to run on non-root paths successfully
This commit is contained in:
parent
80a3ce4e52
commit
06fb9b155b
11 changed files with 156 additions and 121 deletions
|
@ -1,4 +1,4 @@
|
|||
//var conf = require('../../config.js').database;
|
||||
var conf = require('../../config.js').database;
|
||||
|
||||
var redis = require("redis"),
|
||||
redisClient = null; //redis.createClient();
|
||||
|
@ -16,7 +16,8 @@ var REDIS_PREFIX = '#scrumblr#';
|
|||
|
||||
|
||||
var db = function(callback) {
|
||||
redisClient = redis.createClient();
|
||||
console.log('Opening redis connection to ' + conf.host + ':' + conf.port);
|
||||
redisClient = redis.createClient(conf.port, conf.host, {});
|
||||
redisClient.on("connect", function (err) {
|
||||
callback();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue