mirror of
https://github.com/Retropex/apolloapi-v2.git
synced 2025-05-28 13:02:35 +02:00
Switched branch to production one
This commit is contained in:
parent
d955923b23
commit
3d3f283d20
@ -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
|
||||
|
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user