*Load env and arg configs after config files again to have them override in priority.
This commit is contained in:
parent
cd07913340
commit
f8c19e2fd6
|
@ -50,6 +50,11 @@ if (fs.existsSync(configDir)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config.load({
|
||||||
|
env: true,
|
||||||
|
argv: true,
|
||||||
|
});
|
||||||
|
|
||||||
for (const setting of ["domain"]) {
|
for (const setting of ["domain"]) {
|
||||||
if (!config.get(setting)) {
|
if (!config.get(setting)) {
|
||||||
errorExit(`Required config option ${setting} not set`);
|
errorExit(`Required config option ${setting} not set`);
|
||||||
|
|
Loading…
Reference in New Issue