From 1cea7e08e2caaf8eb3b460ff24a77df7a10aeb25 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 6 Nov 2023 13:12:19 +0100 Subject: [PATCH] simplify build.sh again --- build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 4ecb0d4..374f891 100755 --- a/build.sh +++ b/build.sh @@ -1,12 +1,11 @@ #!/usr/bin/env bash set -ex -export DEPLOY_PRIME_URL=https://harald.hoyer.xyz rm -fr public -nix shell nixpkgs#zola -c zola build --base-url "$DEPLOY_PRIME_URL" +nix shell nixpkgs#zola -c zola build nix shell nixpkgs#nodejs_20 nixpkgs#zola -c npm install nix shell nixpkgs#nodejs_20 nixpkgs#zola -c npm run abridge -nix shell nixpkgs#zola -c zola build --base-url "$DEPLOY_PRIME_URL" +nix shell nixpkgs#zola -c zola build nix shell nixpkgs#brotli -c find public -type f -regextype posix-extended -regex '.*\.(htm|html|css|js|xml|xsl|txt|woff|woff2|svg|otf|eot|ttf)' -exec gzip --best -k -f {} \+ -exec brotli --best -f {} \; rsync -a --delete-after public/ /var/www/harald.hoyer.xyz/html/ chmod go-w -R /var/www/harald.hoyer.xyz/