1
0
Fork 0

add npm to build script

This commit is contained in:
Harald Hoyer 2023-11-06 12:32:46 +01:00
parent c3864d61b5
commit 1818da9fc4

View file

@ -1,6 +1,10 @@
#!/usr/bin/env bash
set -ex
export DEPLOY_PRIME_URL=https://harald.hoyer.xyz
nix shell nixpkgs#zola -c zola build --force --output-dir /var/www/harald.hoyer.xyz/html
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 --force --output-dir /var/www/harald.hoyer.xyz/html
rsync -av public/ /var/www/harald.hoyer.xyz/html/
chmod go-w -R /var/www/harald.hoyer.xyz/