diff --git a/justfile b/justfile new file mode 100644 index 00000000..c5a7ce4e --- /dev/null +++ b/justfile @@ -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