1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-20 21:31:34 +00:00

Split off app into own file

This commit is contained in:
Scott Tolksdorf
2017-01-06 01:30:15 -05:00
parent 66ca09b36d
commit 174c2973f7
8 changed files with 71 additions and 76 deletions

View File

@@ -1,23 +1,9 @@
require('app-module-path').addPath('./server');
// initialize config
const config = require('nconf')
.argv()
.env({ lowerCase: true })
.file('testing', { file: `./config/testing.json` })
.file('environment', { file: `../config/${process.env.NODE_ENV}.json` })
.file('defaults', { file: '../config/default.json' });
const should = require('chai').use(require('chai-as-promised')).should();
const log = require('loglevel');
log.setLevel('trace');
module.exports = {
config: config,
should: should,
clearCache: () => {
return new Promise((resolve, reject) => {
return resolve();
});
},
should: should
};