From 2cfc023f4ad88c38c43a8c70706130a7ec6d5859 Mon Sep 17 00:00:00 2001 From: wires Date: Wed, 2 Apr 2025 13:01:00 -0400 Subject: [PATCH] generate statically compressed files --- "\\" | 7 +++++++ deploy.sh | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 "\\" diff --git "a/\\" "b/\\" new file mode 100644 index 0000000..6872d02 --- /dev/null +++ "b/\\" @@ -0,0 +1,7 @@ +#!/bin/sh + +rm -rf ./public +hugo --minify || exit $? +gzip -rk public || exit $? +fd . public -tf -E '*.gz' -x brotli -k {} || exit $? +rsync -rvz --delete ./public/ wires.systems:/var/www/html diff --git a/deploy.sh b/deploy.sh index 8ad09b2..14ffd20 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,7 @@ #!/bin/sh rm -rf ./public -hugo && rsync -rvz --delete ./public/ wires.systems:/var/www/html +hugo --minify || exit $? +gzip --best -rk public || exit $? +fd . public -tf -E '*.gz' -x brotli -k {} || exit $? +rsync -rvz --delete ./public/ wires.systems:/var/www/html