diff --git a/.gitignore b/.gitignore index 3cca3dc..c2ecd47 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,6 @@ node_modules # Users Environment Variables .lock-wscript + +# vim temp files +*.swp diff --git a/db/adapter.js b/db/adapter.js index 45a5a60..5efce20 100644 --- a/db/adapter.js +++ b/db/adapter.js @@ -26,6 +26,7 @@ var RedisAdapter = function() { hostname = redisConfig.get('URL'); } + // TODO(leah): per https://github.com/mranney/node_redis/issues/226 connection pooling shouldn't // be necessary for our use case, so manage a single conn instance. /** @@ -39,7 +40,9 @@ var RedisAdapter = function() { * The Kue job queue used to send tasks to the daemon. * @type {Queue} */ - this.jobQueue = kue.createQueue(); + this.jobQueue = kue.createQueue({ + redis: { port: port, host: hostname } + }); };