@@ -21,21 +21,21 @@ deploy_s3bucket() {
21
21
cat dist/app.2e9868372e0e2992d5d2.css
22
22
# 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
23
23
# 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" `
26
26
if [ $? -eq 0 ]; then
27
27
# 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!"
29
29
else
30
30
echo " Deployment Failed - $result "
31
31
exit 1
32
32
fi
33
33
# 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`
36
36
if [ $? -eq 0 ]; then
37
37
# 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"
39
39
else
40
40
echo " Deployment Failed - $result "
41
41
exit 1
0 commit comments