Files
NodeBB/src/database.js

14 lines
273 B
JavaScript
Raw Normal View History

2013-12-02 15:45:15 -05:00
var nconf = require('nconf'),
2013-12-06 17:46:03 -05:00
databaseType = nconf.get('database'),
winston = require('winston');
2013-12-06 17:46:03 -05:00
if(!databaseType) {
winston.info('Database type not set! Run npm app --setup');
process.exit();
}
var db = require('./database/' + databaseType);
2013-12-02 15:45:15 -05:00
module.exports = db;