fix(all): Migration to Linus.
This commit is contained in:
parent
54c47694f7
commit
15f9c61983
1 changed files with 7 additions and 4 deletions
11
deploy.sh
11
deploy.sh
|
@ -78,9 +78,9 @@ if [ -e "$DEPLOYMENT_SOURCE/package.json" ]; then
|
|||
fi
|
||||
|
||||
# 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 -p "$DEPLOYMENT_TARGET"
|
||||
eval ./node_modules/typescript/bin/tsc -p "$DEPLOYMENT_SOURCE"
|
||||
|
||||
# 3. Install default.gbui npm packages
|
||||
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"
|
||||
echo "[General Bots Deployer] Building react app..."
|
||||
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."
|
||||
exitWithMessageOnError "react build failed"
|
||||
cd - > /dev/null
|
||||
|
@ -99,9 +102,9 @@ echo "[General Bots Deployer] Deployment Finished."
|
|||
|
||||
# 4. KuduSync
|
||||
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"
|
||||
fi
|
||||
|
||||
##################################################################################################################################
|
||||
echo "[General Bots Deployer]Finished successfully."
|
||||
echo "[General Bots Deployer]Finished successfully."
|
Loading…
Add table
Reference in a new issue