justfile | added

This commit is contained in:
Don Harper 2025-08-05 07:19:20 -05:00
parent 9cdd2956df
commit 8b15a2de08

17
justfile Normal file
View file

@ -0,0 +1,17 @@
PRIMARY := "nuwww"
SECONDARY := "w1"
TARGET := `basename $(pwd)`
# Deploy to primary
deploy:
@hugo
@rsync -e ssh -i /home/don/.ssh/git --delete -a public/ {{PRIMARY}}:www/www.{{TARGET}}/
# Deploy to dev
dev:
@hugo --buildDrafts --buildFuture --quiet -b https://dev.{{TARGET}}/
@rsync -e ssh -i /home/don/.ssh/git --delete -a public/ {{SECONDARY}}:www/www.{{TARGET}}/
# Run local test server
test:
@hugo serve --buildDrafts --buildFuture