You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nodebb/src/database.js

14 lines
274 B
JavaScript

11 years ago
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);
11 years ago
module.exports = db;