mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
14 lines
274 B
JavaScript
14 lines
274 B
JavaScript
|
|
|
|
var nconf = require('nconf'),
|
|
databaseType = nconf.get('database'),
|
|
winston = require('winston');
|
|
|
|
if(!databaseType) {
|
|
winston.info('Database type not set! Run node app --setup');
|
|
process.exit();
|
|
}
|
|
|
|
var db = require('./database/' + databaseType);
|
|
|
|
module.exports = db; |