1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

tweak deployment

* cache everything by default
* modify cache headers for selected files afterwards
This commit is contained in:
Matthias Kretschmann 2018-12-10 13:20:20 +01:00
parent a4e41831bc
commit e3644ea447
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -13,26 +13,21 @@ set -e;
function s3sync {
aws s3 sync ./public s3://"$1" \
--exclude "*" \
--include "*.js" \
--include "*.css" \
--include "static/*" \
--include "icons/*" \
--exclude "sw.js" \
--exclude "workbox*/*" \
--cache-control public,max-age=31536000,immutable \
--delete \
--acl public-read \
--quiet
--acl public-read
aws s3 sync ./public s3://"$1" \
--exclude "*" \
--include "*.html" \
--include "sw.js" \
--include "chunk-map.json" \
--include "sitemap.xml" \
--include ".iconstats.json" \
--include "robots.txt" \
--cache-control public,max-age=0,must-revalidate \
--delete \
--acl public-read \
--quiet
--acl public-read
}
##