feat: create environment variable for the config file (#2519)

Signed-off-by: wilmardo <info@wilmardenouden.nl>
This commit is contained in:
Wilmar den Ouden 2019-12-16 20:49:25 +01:00 committed by Koen Kanters
parent 981612c64c
commit 5083bbcc16

View File

@ -1,6 +1,6 @@
const data = require('./data'); const data = require('./data');
const utils = require('./utils'); const utils = require('./utils');
const file = data.joinPath('configuration.yaml'); const file = process.env.ZIGBEE2MQTT_CONFIG || data.joinPath('configuration.yaml');
const objectAssignDeep = require(`object-assign-deep`); const objectAssignDeep = require(`object-assign-deep`);
const path = require('path'); const path = require('path');
const yaml = require('./yaml'); const yaml = require('./yaml');