17 lines
445 B
Makefile
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
|