|
|
@ -203,16 +203,14 @@ function setupDatabase(server_conf, next) {
|
|
|
|
var npm = require('npm'),
|
|
|
|
var npm = require('npm'),
|
|
|
|
packages = [];
|
|
|
|
packages = [];
|
|
|
|
|
|
|
|
|
|
|
|
npm.load({
|
|
|
|
npm.load({}, function(err) {
|
|
|
|
loglevel: 'silly'
|
|
|
|
|
|
|
|
}, function(err) {
|
|
|
|
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
next(err);
|
|
|
|
next(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
switch(server_conf.database) {
|
|
|
|
switch(server_conf.database) {
|
|
|
|
case 'redis':
|
|
|
|
case 'redis':
|
|
|
|
packages = packages.concat(['redis', 'hiredis', 'connect-redis']);
|
|
|
|
packages = packages.concat(['redis', 'connect-redis@~1.4']);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case 'mongo':
|
|
|
|
case 'mongo':
|
|
|
|