From 2bd6f79dbf75808c91eca876d35c2439be7d9bea Mon Sep 17 00:00:00 2001 From: Marcel Amirault Date: Fri, 28 Oct 2022 09:30:08 +0900 Subject: Clean environment before deploying review app --- scripts/deploy-review-app | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/deploy-review-app b/scripts/deploy-review-app index f657e697..276e375a 100755 --- a/scripts/deploy-review-app +++ b/scripts/deploy-review-app @@ -62,6 +62,9 @@ if [ "$DEPLOY_DELETE_APP" = 'true' ]; then echo "gsutil -m rm -r \"$dest\"" gsutil -m rm -r "$dest" else + echo "Making sure review app environment in ${dest} is empty..." + echo "gsutil -m rm -r \"$dest\"" + gsutil -m rm -r "$dest" echo "Deploying review app to ${dest}..." echo "gsutil -h \"Cache-Control:public, max-age=$cache_control_max_age\" -m cp -z css,html,js,txt -c -r \"$src\" \"$dest\"" with_backoff gsutil -h "Cache-Control:public, max-age=$cache_control_max_age" -m cp -z css,html,js,txt -c -r "$src" "$dest" -- cgit v1.2.3