simplify build.sh
This commit is contained in:
parent
f2249e32ec
commit
8544eaafd9
6
build.sh
6
build.sh
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
rm -fr public
|
rm -fr public
|
||||||
nix shell nixpkgs#zola -c zola build
|
nix shell nixpkgs#zola -c zola build
|
||||||
nix shell nixpkgs#nodejs_20 nixpkgs#zola -c npm install
|
nix shell nixpkgs#nodejs_20 -c npm install
|
||||||
nix shell nixpkgs#nodejs_20 nixpkgs#zola -c npm run abridge
|
nix shell nixpkgs#nodejs_20 -c npm run abridge
|
||||||
nix shell nixpkgs#zola -c zola build
|
nix shell nixpkgs#zola -c zola build
|
||||||
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 {} \;
|
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 {} \;
|
||||||
rsync -a --delete-after public/ /var/www/harald.hoyer.xyz/html/
|
rsync -a --delete-after public/ /var/www/harald.hoyer.xyz/html/
|
||||||
|
|
Loading…
Reference in a new issue