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
318 B
JavaScript

8 years ago
'use strict';
11 years ago
9 years ago
var nconf = require('nconf');
var databaseName = nconf.get('database');
var winston = require('winston');
9 years ago
if (!databaseName) {
8 years ago
winston.error(new Error('Database type not set! Run ./nodebb setup'));
process.exit();
}
9 years ago
var primaryDB = require('./database/' + databaseName);
11 years ago
module.exports = primaryDB;