Switched branch to production one

This commit is contained in:
Michele Marcucci 2021-05-12 10:09:49 +02:00
parent d955923b23
commit 3d3f283d20
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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 }