removed redundant config check
This commit is contained in:
parent
134859742f
commit
517d1b2a95
2 changed files with 0 additions and 18 deletions
|
@ -1,12 +1,3 @@
|
|||
|
||||
// test configs
|
||||
const checkForConfig = require('./utils/checkForConfig.js');
|
||||
checkForConfig('siteConfig');
|
||||
checkForConfig('mysqlConfig');
|
||||
checkForConfig('slackConfig');
|
||||
checkForConfig('loggerConfig');
|
||||
checkForConfig('siteConfig');
|
||||
|
||||
// load modules
|
||||
const express = require('express');
|
||||
const bodyParser = require('body-parser');
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
const logger = require('winston');
|
||||
|
||||
module.exports = (name) => {
|
||||
const config = require(`@config/${name}`);
|
||||
if (!config) {
|
||||
return logger.warn(`Server could not find config file for ${name}.`);
|
||||
}
|
||||
logger.debug(`found ${name} config:`, config);
|
||||
};
|
Loading…
Add table
Reference in a new issue