1
0
Fork 0

simplify build.sh again

This commit is contained in:
Harald Hoyer 2023-11-06 13:12:19 +01:00
parent 6a61b3eb42
commit 1cea7e08e2

View file

@ -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/