From b953901c3ca34c06cf08bccc5ceea199bef1eca9 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 16 Sep 2018 17:12:18 +0200 Subject: [PATCH] Web Config Changes --- Root.js | 14 +++++++++++++- web.config.json | 27 --------------------------- 2 files changed, 13 insertions(+), 28 deletions(-) diff --git a/Root.js b/Root.js index 8b120fb3e..f73680488 100644 --- a/Root.js +++ b/Root.js @@ -211,7 +211,19 @@ exports.newRoot = function newRoot() { for (let p = 0; p < global.PLATFORM_CONFIG.executionList.length; p++) { let listItem = PLATFORM_CONFIG.executionList[p]; - let executionListItem = global.EXECUTION_CONFIG.executionList[p]; + + /* + The local configuration allows to select the configuration to run + locally, without overwriting the server config. + Here we check that the local configuration for the execution + exist, if it doesn't exist we will take the one on the server. + */ + let executionListItem; + if (global.EXECUTION_CONFIG === undefined) { + executionListItem = listItem; + } else { + executionListItem = global.EXECUTION_CONFIG.executionList[p]; + } if (listItem.enabled !== "true" || executionListItem.enabled !== "true") { diff --git a/web.config.json b/web.config.json index e33df0add..6575697d3 100644 --- a/web.config.json +++ b/web.config.json @@ -38,33 +38,6 @@ }, { "name": "DataSet.js" - }, - { - "name": "exchange/ExchangeAPI.js" - }, - { - "name": "exchange/exchangeUtils.js" - }, - { - "name": "exchange/wrappers/beautifier.js" - }, - { - "name": "exchange/wrappers/binance.js" - }, - { - "name": "exchange/wrappers/binanceClient.js" - }, - { - "name": "exchange/wrappers/binanceProperties.json" - }, - { - "name": "exchange/wrappers/poloniex.js" - }, - { - "name": "exchange/wrappers/poloniexClient.js" - }, - { - "name": "exchange/wrappers/poloniexProperties.json" } ] } \ No newline at end of file