Use BOX_ENV instead of NODE_ENV
Let NODE_ENV be used by node modules and always be set to production Fixes #453
This commit is contained in:
@@ -108,7 +108,7 @@ CloudronError.NOT_FOUND = 'Not found';
|
||||
function initialize(callback) {
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
if (process.env.BOX_ENV !== 'test') {
|
||||
addMailDnsRecords();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user