1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-02-14 21:10:41 +01:00

deployment tweaks

This commit is contained in:
Matthias Kretschmann 2018-12-07 13:36:03 +01:00
parent 38a70910f3
commit 7c6e02c11f
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -14,9 +14,10 @@ function s3sync {
aws s3 sync ./public s3://"$1" \
--exclude "*" \
--include "*.js" \
--include "*.map" \
--include "*.css" \
--include "static/*" \
--include "icons/*" \
--include "*.png" \
--exclude "sw.js" \
--exclude "workbox*/*" \
--cache-control public,max-age=31536000,immutable \
@ -27,6 +28,8 @@ function s3sync {
--exclude "*" \
--include "*.html" \
--include "sw.js" \
--include "chunk-map.json" \
--include "sitemap.xml" \
--cache-control public,max-age=0,must-revalidate \
--delete \
--acl public-read