www.duckland.org/justfile
2026-04-11 15:59:35 -05:00

19 lines
540 B
Makefile

TARGET := `basename $(pwd)`
PRIMARY := "w2"
PDIR := "/srv/http/www."
SECONDARY := "w1"
# Deploy to primary
deploy:
@hugo
@rsync -e ssh -i /home/don/.ssh/git --delete -a public/ {{PRIMARY}}:{{PDIR}}{{TARGET}}/
@ssh -i /home/don/.ssh/git {{PRIMARY}} chmod -R a+rX {{PDIR}}{{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