Added iredmail class and used-quota model

This commit is contained in:
Chris Troutner
2019-01-21 17:17:26 -08:00
parent 04ea33cd96
commit c0346f2e32
4 changed files with 94 additions and 30 deletions
+9 -1
View File
@@ -1,6 +1,14 @@
const common = require('./env/common')
// Attempt to include a common.js config file, if it exists.
let common
try {
common = require('./env/common')
} catch (err) {}
// Default to development environment.
const env = process.env.NODE_ENV || 'development'
// Load the config object for the selected environment.
const config = require(`./env/${env}`)
// Merge into a single object and export.
module.exports = Object.assign({}, common, config)