Print read config from local
gitea/salix/master This commit looks good Details
gitea/salix/test This commit looks good Details

This commit is contained in:
Juan Ferrer 2019-12-24 09:03:15 +01:00
parent 69b53b3cdc
commit 4f0a54329a
1 changed files with 2 additions and 0 deletions

View File

@ -4,8 +4,10 @@ let env = process.env.NODE_ENV ? process.env.NODE_ENV : 'development';
let configPath = `/etc/salix`; let configPath = `/etc/salix`;
let config = require('../config/print.json'); let config = require('../config/print.json');
let configFiles = [ let configFiles = [
`${appPath}/config/print.local.json`,
`${appPath}/config/print.${env}.json`, `${appPath}/config/print.${env}.json`,
`${configPath}/print.json`, `${configPath}/print.json`,
`${configPath}/print.local.json`,
`${configPath}/print.${env}.json` `${configPath}/print.${env}.json`
]; ];