www.duckland.org/justfile
2025-08-05 07:18:59 -05:00

17 lines
445 B
Makefile

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