From 3d3f283d20498000ec4ada2a99706c68ef15c97b Mon Sep 17 00:00:00 2001 From: Michele Marcucci Date: Wed, 12 May 2021 10:09:49 +0200 Subject: [PATCH] Switched branch to production one --- backend/install | 5 ++++- src/store/api/mcu/mcuStats.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/install b/backend/install index 4017d62..9cf04fe 100755 --- a/backend/install +++ b/backend/install @@ -34,7 +34,10 @@ if [ "$1" = "dev" ]; then rm -rf $APOLLO_DIR/apolloui git clone --single-branch --branch dev-BTC https://github.com/jstefanop/apolloui.git $APOLLO_DIR/apolloui else - git clone --recurse-submodules -j8 https://github.com/jstefanop/apolloapi.git $APOLLO_DIR + echo -e "${YELLOW} ---> Using PRODUCTION branch" + git clone --single-branch --branch production-BTC https://github.com/jstefanop/apolloapi.git $APOLLO_DIR + rm -rf $APOLLO_DIR/apolloui + git clone --single-branch --branch production-BTC https://github.com/jstefanop/apolloui.git $APOLLO_DIR/apolloui fi chown -R futurebit $APOLLO_DIR diff --git a/src/store/api/mcu/mcuStats.js b/src/store/api/mcu/mcuStats.js index 9e9af77..c0c483c 100644 --- a/src/store/api/mcu/mcuStats.js +++ b/src/store/api/mcu/mcuStats.js @@ -5,7 +5,7 @@ const axios = require('axios') module.exports = ({ define }) => { define('stats', async (payload, { knex, errors, utils }) => { const stats = await getOsStats() - const gitAppVersion = await axios.get('https://raw.githubusercontent.com/jstefanop/apolloui/dev-BTC/package.json'); + const gitAppVersion = await axios.get('https://raw.githubusercontent.com/jstefanop/apolloui/production-BTC/package.json'); stats.currentAppVersion = (gitAppVersion && gitAppVersion.data) ? gitAppVersion.data.version : null; stats.timestamp = new Date().toISOString() return { stats }