justfile | added
This commit is contained in:
parent
1d7c57b224
commit
a24dcd4cf8
1 changed files with 17 additions and 0 deletions
17
justfile
Normal file
17
justfile
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue