website/justfile
Soc Virnyl Estela 21e4ade0a6
update justfile
Signed-off-by: Soc Virnyl Estela <contact@uncomfyhalomacro.pl>
2024-06-27 23:23:30 +08:00

31 lines
672 B
Makefile

#!/usr/bin/just
default: all
format:
npx prettier -w .
webring:
openring -t quartz.layout.ts.in -n 10 -S webring-list >| quartz.layout.ts
build: webring
rm -rfv public
npx quartz build
cp -v .htaccess public/.htaccess
serve: build
rm -rfv public
npx quartz build --serve
publish: format build
#!/usr/bin/env bash
set -euxo pipefail
sudo chown $USER1:$USER1 -R public/
mv public uncomfyhalomacro.pl
ssh ${USER2}@${IP_ADDRESS} 'rm -rfv "/srv/www/vhosts/uncomfyhalomacro.pl"'
rsync --rsh="ssh -o StrictHostKeyChecking=no" -azvP --progress uncomfyhalomacro.pl "${USER2}@${IP_ADDRESS}:/srv/www/vhosts" > /dev/null
rm -rvf uncomfyhalomacro.pl
all: serve