One folder for all configs

This commit is contained in:
Luis Fernando Molina committed 2018-11-17 09:09:51 +01:00
1 parent 15d4e06a0f
commit 7dc099cbdf
2 files changed
+7 -6

No files matched your search

+4 -3
View File
@@ -9,6 +9,7 @@ bin/*
*.cache
node_modules/*
exchange/Auth0.js
Email-Config/Email.Config.json
Execution.Config.json
User-Profile/User.Profile.json
configs/Email.Config.json
configs/User.Profile.json
configs/Execution.Config.json
+3 -3
View File
@@ -49,7 +49,7 @@ function readStoragePermissions() {
console.log( "[INFO] Run -> readStoragePermissions -> Entering function. ");
let fs = require('fs');
filePath = './' + 'User-Profile' + '/' + 'User.Profile.json';
filePath = './' + 'configs' + '/' + 'User.Profile.json';
global.USER_PROFILE = JSON.parse(fs.readFileSync(filePath, 'utf8'));
@@ -83,7 +83,7 @@ function readEmailConfiguration() {
console.log( "Run : [INFO] readEmailConfiguration -> Entering function. ");
let fs = require('fs');
filePath = './' + 'Email-Config' + '/' + 'Email.Config.json';
filePath = './' + 'configs' + '/' + 'Email.Config.json';
global.EMAIL_CONFIG = JSON.parse(fs.readFileSync(filePath, 'utf8'));
readExecutionConfiguration();
@@ -98,7 +98,7 @@ function readExecutionConfiguration() {
let filePath;
try {
let fs = require('fs');
filePath = 'Execution.Config.json';
filePath = './configs/Execution.Config.json';
let executionProperties = JSON.parse(fs.readFileSync(filePath, 'utf8'));
global.DEV_TEAM = executionProperties.devTeam;
global.EXCHANGE_NAME = executionProperties.exchangeName;