diff --git a/bin/deploy-aws b/bin/deploy-aws index 41260fb9c50ec84e02bfd8c2ff98e23819b5a9d3..777cde624e1b4f427a871c6217df6cfe4ca06d57 100755 --- a/bin/deploy-aws +++ b/bin/deploy-aws @@ -14,12 +14,16 @@ DEPLOY_PATH="web_guidelines/${PROJECT}/${BRANCH}"; if [ "${1:-''}" = "prod" ]; then S3_BUCKET=${S3_BUCKET_PROD}; + MAX_AGE=60; # 1min else S3_BUCKET=${S3_BUCKET_DEV}; + MAX_AGE=60; # 1min fi; # push to AWS (exclude bin and .git) aws s3 sync . s3://${S3_BUCKET}/${DEPLOY_PATH} \ --exclude ".git*" \ --exclude "bin/*" \ + --delete \ + --cache-control "max-age=${MAX_AGE}" \ ;