fix(all): Migration to Linus.
This commit is contained in:
parent
8dcea9384d
commit
ef5eb6cea6
1 changed files with 14 additions and 14 deletions
28
deploy.sh
28
deploy.sh
|
@ -67,28 +67,28 @@ fi
|
||||||
# Deployment
|
# Deployment
|
||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
echo Handling react app deployment.
|
|
||||||
|
|
||||||
# 1. Install npm packages
|
# 1. Install npm packages
|
||||||
if [ -e "$DEPLOYMENT_SOURCE/package.json" ]; then
|
if [ -e "$DEPLOYMENT_SOURCE/package.json" ]; then
|
||||||
|
echo "[General Bots Deployer] Running npm install..."
|
||||||
cd "$DEPLOYMENT_SOURCE"
|
cd "$DEPLOYMENT_SOURCE"
|
||||||
echo "[General Bots Deployer] Running npm install"
|
|
||||||
eval npm install
|
eval npm install
|
||||||
|
echo "[General Bots Deployer] OK."
|
||||||
exitWithMessageOnError "npm failed"
|
exitWithMessageOnError "npm failed"
|
||||||
cd - > /dev/null
|
cd - > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 1.1 Install default.gbui npm packages
|
# # 1.1 Install default.gbui npm packages
|
||||||
if [ -e "$DEPLOYMENT_SOURCE/packages/default.gbui/package.json" ]; then
|
# if [ -e "$DEPLOYMENT_SOURCE/packages/default.gbui/package.json" ]; then
|
||||||
cd "$DEPLOYMENT_SOURCE/packages/default.gbui"
|
# echo "[General Bots Deployer] Running npm install for default.gbui..."
|
||||||
echo "[General Bots Deployer] Running npm install"
|
# cd "$DEPLOYMENT_SOURCE/packages/default.gbui"
|
||||||
eval npm install
|
# eval npm install
|
||||||
exitWithMessageOnError "npm failed"
|
# exitWithMessageOnError "npm failed"
|
||||||
echo "[General Bots Deployer] Building react app"
|
# echo "[General Bots Deployer] Building react app..."
|
||||||
eval npm run build
|
# eval npm run build
|
||||||
exitWithMessageOnError "react build failed"
|
# echo "[General Bots Deployer] OK."
|
||||||
cd - > /dev/null
|
# exitWithMessageOnError "react build failed"
|
||||||
fi
|
# cd - > /dev/null
|
||||||
|
# fi
|
||||||
|
|
||||||
# 1.2 Install typescript
|
# 1.2 Install typescript
|
||||||
echo "[General Bots Deployer] Transpiling..."
|
echo "[General Bots Deployer] Transpiling..."
|
||||||
|
|
Loading…
Add table
Reference in a new issue