@@ -21,21 +21,21 @@ deploy_s3bucket() {
2121 cat dist/app.2e9868372e0e2992d5d2.css
2222 # aws s3 sync --dryrun ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control private,no-store,no-cache,must-revalidate,max-age=0
2323 # result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control private,no-store,no-cache,must-revalidate,max-age=0`
24- aws s3 sync --dryrun ${HOME} /${CIRCLE_PROJECT_REPONAME} /dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude " *.txt" --exclude " *.js" --exclude " *.map " --exclude " *. css"
25- result=` aws s3 sync ${HOME} /${CIRCLE_PROJECT_REPONAME} /dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude " *.txt" --exclude " *.js" --exclude " *.map " --exclude " *. css" `
24+ aws s3 sync --dryrun ${HOME} /${CIRCLE_PROJECT_REPONAME} /dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude " *.txt" --exclude " *.js" --exclude " *.css"
25+ result=` aws s3 sync ${HOME} /${CIRCLE_PROJECT_REPONAME} /dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude " *.txt" --exclude " *.js" --exclude " *.css" `
2626 if [ $? -eq 0 ]; then
2727 # echo $result
28- echo " All html, font, image and media files are Deployed without gzip encoding!"
28+ echo " All html, font, image, map and media files are Deployed without gzip encoding!"
2929 else
3030 echo " Deployment Failed - $result "
3131 exit 1
3232 fi
3333 # result=`aws s3 sync ${HOME}/${CIRCLE_PROJECT_REPONAME}/dist s3://${AWS_S3_BUCKET} --cache-control private,no-store,no-cache,must-revalidate,max-age=0`
34- aws s3 sync --dryrun ${HOME} /${CIRCLE_PROJECT_REPONAME} /dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude " *" --include " *.txt" --include " *.js" --include " *.map " --include " *. css" --content-encoding gzip
35- result=` aws s3 sync ${HOME} /${CIRCLE_PROJECT_REPONAME} /dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude " *" --include " *.txt" --include " *.js" --include " *.map " --include " *. css" --content-encoding gzip`
34+ aws s3 sync --dryrun ${HOME} /${CIRCLE_PROJECT_REPONAME} /dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude " *" --include " *.txt" --include " *.js" --include " *.css" --content-encoding gzip
35+ result=` aws s3 sync ${HOME} /${CIRCLE_PROJECT_REPONAME} /dist s3://${AWS_S3_BUCKET} --cache-control max-age=0,s-maxage=86400 --exclude " *" --include " *.txt" --include " *.js" --include " *.css" --content-encoding gzip`
3636 if [ $? -eq 0 ]; then
3737 # echo $result
38- echo " All css, js , and map files are Deployed! with gzip"
38+ echo " All txt, css , and js files are Deployed! with gzip"
3939 else
4040 echo " Deployment Failed - $result "
4141 exit 1
0 commit comments