From 15f9c619830f56774e4a36d96ccf4b9f3497da2f Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 4 Jan 2022 21:19:33 -0300 Subject: [PATCH] fix(all): Migration to Linus. --- deploy.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index fbf73516..c94af5a3 100644 --- a/deploy.sh +++ b/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." \ No newline at end of file +echo "[General Bots Deployer]Finished successfully." \ No newline at end of file