Change deploy and archive targets.

This commit is contained in:
Justin Hsu 2021-01-14 17:02:31 +00:00
parent 2c754e62df
commit 5f882d1b37
1 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,7 @@
HOST=wisc
DEPLOY_HOST=wisc
ARCHIVE_HOST=jackknife
DEPLOY=/u/j/u/justhsu/public/html-s/teaching/current/cs763
# ARCHIVE=/u/j/u/justhsu/public/html-s/teaching/f20/cs763
ARCHIVE=/home/justhsu/teaching/f20/cs763
build:
make assets && mkdocs build
@ -19,11 +20,11 @@ deploy:
make build
find . -type d -exec chmod a+rx {} \;
find . -type f -exec chmod a+r {} \;
rsync -avzp --delete -e ssh ./site/ $(HOST):$(DEPLOY)
# ssh jackknife 'mkdir -p html/staging/cs763'
rsync -avzp --relative $(DEPLOY) -e ssh ./site/ $(DEPLOY_HOST)
archive:
make build
find . -type d -exec chmod a+rx {} \;
find . -type f -exec chmod a+r {} \;
ssh $(HOST) mkdir -p $(ARCHIVE)
rsync -avzp --delete -e ssh ./site/ $(HOST):$(ARCHIVE)
rsync -avzp --relative $(ARCHIVE) -e ssh ./site/ $(ARCHIVE_HOST)