From 020f32ce73dd446657974c1e71a66dca70f7a652 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 1 Apr 2020 04:14:47 -0400 Subject: use static gzip --- deploy_static | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'deploy_static') diff --git a/deploy_static b/deploy_static index 497917fa..9af6c306 100755 --- a/deploy_static +++ b/deploy_static @@ -4,6 +4,10 @@ set -o errexit ./validate_static +rm -rf static_tmp +cp -a static static_tmp +find static_tmp -regex '\(.+/LICENSE\|.+\.\(css\|html\|ico\|js\|svg\|txt\|webmanifest\|xml\)\)' -exec gzip -k9 {} + + remote=www-data@grapheneos.org active=$(ssh $remote readlink html) @@ -17,7 +21,7 @@ echo active is $active echo target is $target echo -rsync -rpcve ssh --chmod=D755,F644 --delete static/ $remote:$target +rsync -rpcve ssh --chmod=D755,F644 --delete static_tmp/ $remote:$target ssh $remote sync -f $target ssh $remote ln -snf $target html ssh $remote sync . -- cgit v1.3.1