From 318cd6f8eeedda53408193ff1f6b751221a82aba Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Wed, 4 Mar 2015 22:52:37 -0800 Subject: [PATCH] Replace `aws` CLI with `s3cmd` for better syncing --- scripts/deploy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/deploy b/scripts/deploy index 5c03b8a7c..4c5534d04 100755 --- a/scripts/deploy +++ b/scripts/deploy @@ -2,7 +2,7 @@ export AWS_CONFIG_FILE="$HOME/Documents/CraftingGuide/aws.config" -ROOT="./dist" +DIST="./dist" SITE="crafting-guide.com" TARGET="" while [[ "$1" != "" ]]; do @@ -19,10 +19,10 @@ if [[ "$TARGET" == "" ]]; then fi if [[ "$TARGET" == "new" ]]; then - find $ROOT -name ".DS_Store" | xargs rm + find "$DIST" -name ".DS_Store" | xargs rm grunt clean dist - aws s3 sync $ROOT s3://new.$SITE --delete + s3cmd sync -r --delete-removed "$DIST/" "s3://new.$SITE/" grunt clean build elif [[ "$TARGET" == "promote" ]]; then - aws s3 sync s3://new.$SITE s3://$SITE --delete + aws s3 sync "s3://new.$SITE" "s3://$SITE" --delete fi