mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Merge pull request #102 from oceanprotocol/fix/deployment
tweak deployment
This commit is contained in:
commit
97d032175e
@ -13,26 +13,21 @@ set -e;
|
|||||||
|
|
||||||
function s3sync {
|
function s3sync {
|
||||||
aws s3 sync ./public s3://"$1" \
|
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 \
|
--cache-control public,max-age=31536000,immutable \
|
||||||
--delete \
|
--delete \
|
||||||
--acl public-read \
|
--acl public-read
|
||||||
--quiet
|
|
||||||
|
|
||||||
aws s3 sync ./public s3://"$1" \
|
aws s3 sync ./public s3://"$1" \
|
||||||
--exclude "*" \
|
--exclude "*" \
|
||||||
--include "*.html" \
|
--include "*.html" \
|
||||||
--include "sw.js" \
|
--include "sw.js" \
|
||||||
|
--include "chunk-map.json" \
|
||||||
|
--include "sitemap.xml" \
|
||||||
|
--include ".iconstats.json" \
|
||||||
|
--include "robots.txt" \
|
||||||
--cache-control public,max-age=0,must-revalidate \
|
--cache-control public,max-age=0,must-revalidate \
|
||||||
--delete \
|
--delete \
|
||||||
--acl public-read \
|
--acl public-read
|
||||||
--quiet
|
|
||||||
}
|
}
|
||||||
|
|
||||||
##
|
##
|
||||||
|
Loading…
Reference in New Issue
Block a user