fix(all): Migration to Linus.
This commit is contained in:
parent
54c47694f7
commit
15f9c61983
1 changed files with 7 additions and 4 deletions
|
@ -80,7 +80,7 @@ fi
|
||||||
# 2. Install TypeScript
|
# 2. Install TypeScript
|
||||||
echo "[General Bots Deployer] Transpiling..."
|
echo "[General Bots Deployer] Transpiling..."
|
||||||
eval ./node_modules/typescript/bin/tsc -v
|
eval ./node_modules/typescript/bin/tsc -v
|
||||||
eval ./node_modules/typescript/bin/tsc -p "$DEPLOYMENT_TARGET"
|
eval ./node_modules/typescript/bin/tsc -p "$DEPLOYMENT_SOURCE"
|
||||||
|
|
||||||
# 3. Install default.gbui npm packages
|
# 3. 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
|
||||||
|
@ -90,6 +90,9 @@ if [ -e "$DEPLOYMENT_SOURCE/packages/default.gbui/package.json" ]; then
|
||||||
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
|
||||||
|
cd ..
|
||||||
|
echo "[General Bots Deployer] Copying default.gbui."
|
||||||
|
eval cp default.gbui "$DEPLOYMENT_TARGET/dist/packages"
|
||||||
echo "[General Bots Deployer] OK."
|
echo "[General Bots Deployer] OK."
|
||||||
exitWithMessageOnError "react build failed"
|
exitWithMessageOnError "react build failed"
|
||||||
cd - > /dev/null
|
cd - > /dev/null
|
||||||
|
@ -99,7 +102,7 @@ echo "[General Bots Deployer] Deployment Finished."
|
||||||
|
|
||||||
# 4. KuduSync
|
# 4. KuduSync
|
||||||
if [[ "$IN_PLACE_DEPLOYMENT" -ne "1" ]]; then
|
if [[ "$IN_PLACE_DEPLOYMENT" -ne "1" ]]; then
|
||||||
"$KUDU_SYNC_CMD" -v 50 -f "$DEPLOYMENT_SOURCE/build" -t "$DEPLOYMENT_TARGET" -n "$NEXT_MANIFEST_PATH" -p "$PREVIOUS_MANIFEST_PATH" -i ".git;.hg;.deployment;deploy.sh"
|
"$KUDU_SYNC_CMD" -v 50 -f "$DEPLOYMENT_SOURCE/dist" -t "$DEPLOYMENT_TARGET" -n "$NEXT_MANIFEST_PATH" -p "$PREVIOUS_MANIFEST_PATH" -i ".git;.hg;.deployment;deploy.sh"
|
||||||
exitWithMessageOnError "Kudu Sync failed"
|
exitWithMessageOnError "Kudu Sync failed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue