reduce cache time to 1 hours so future docs releases update the cloudfront caches faster
Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@fosiki.com> (github: SvenDowideit)
This commit is contained in:
parent
5877ae2462
commit
1dec8fd03c
|
@ -54,7 +54,7 @@ upload_current_documentation() {
|
||||||
echo " to $dst"
|
echo " to $dst"
|
||||||
echo
|
echo
|
||||||
#s3cmd --recursive --follow-symlinks --preserve --acl-public sync "$src" "$dst"
|
#s3cmd --recursive --follow-symlinks --preserve --acl-public sync "$src" "$dst"
|
||||||
aws s3 sync --acl public-read --exclude "*.rej" --exclude "*.rst" --exclude "*.orig" --exclude "*.py" "$src" "$dst"
|
aws s3 sync --cache-control "max-age=3600" --acl public-read --exclude "*.rej" --exclude "*.rst" --exclude "*.orig" --exclude "*.py" "$src" "$dst"
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_s3
|
setup_s3
|
||||||
|
|
Loading…
Reference in New Issue