mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
updated upgrade script to use mongo or redis
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
|
||||
|
||||
var nconf = require('nconf');
|
||||
db = require('./database/' + nconf.get('database'));
|
||||
var nconf = require('nconf'),
|
||||
databaseType = nconf.get('database');
|
||||
|
||||
if(!databaseType) {
|
||||
winston.info('Database type not set! Run npm app --setup');
|
||||
process.exit();
|
||||
}
|
||||
|
||||
var db = require('./database/' + databaseType);
|
||||
|
||||
module.exports = db;
|
||||
Reference in New Issue
Block a user