salix/services/mailer/application/config.js

18 lines
513 B
JavaScript
Raw Normal View History

2017-11-27 14:08:18 +00:00
var path = require('path');
var fs = require('fs');
var config = {};
let devConfigPath = path.join(__dirname, '/config/datasources.development.json');
let configPath = path.join(__dirname, '/config/datasources.json');
try {
config = Object.assign(require(configPath), require(devConfigPath));
} catch (e) {
if (e.code == 'MODULE_NOT_FOUND')
2017-11-28 07:44:44 +00:00
config = require(configPath);
2017-11-27 14:08:18 +00:00
}
config.proxy = require('../../nginx/config.json');
config.package = require('../package.json');
module.exports = config;