Skip to content

Commit

Permalink
fix(all): Migration to Linus.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jan 4, 2022
1 parent 35a4e4d commit 54c4769
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ if [ -e "$DEPLOYMENT_SOURCE/package.json" ]; then
cd - > /dev/null
fi

# 1.1 Install default.gbui npm packages
# 2. Install TypeScript
echo "[General Bots Deployer] Transpiling..."
eval ./node_modules/typescript/bin/tsc -v
eval ./node_modules/typescript/bin/tsc -p "$DEPLOYMENT_TARGET"

# 3. Install default.gbui npm packages
if [ -e "$DEPLOYMENT_SOURCE/packages/default.gbui/package.json" ]; then
echo "[General Bots Deployer] Running npm install for default.gbui..."
cd "$DEPLOYMENT_SOURCE/packages/default.gbui"
Expand All @@ -90,15 +95,9 @@ if [ -e "$DEPLOYMENT_SOURCE/packages/default.gbui/package.json" ]; then
cd - > /dev/null
fi

# 1.2 Install TypeScript
echo "[General Bots Deployer] Transpiling..."
eval ./node_modules/typescript/bin/tsc -v
eval ./node_modules/typescript/bin/tsc -p "$DEPLOYMENT_TARGET"

echo "[General Bots Deployer] Deployment Finished."


# 2. KuduSync
# 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"
exitWithMessageOnError "Kudu Sync failed"
Expand Down

0 comments on commit 54c4769

Please sign in to comment.