Update archive target.

This commit is contained in:
Justin Hsu 2023-03-29 23:08:57 -04:00
parent 5f882d1b37
commit 4bfced411c
1 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,8 @@
DEPLOY_HOST=wisc
ARCHIVE_HOST=jackknife
DEPLOY=/u/j/u/justhsu/public/html-s/teaching/current/cs763
ARCHIVE=/home/justhsu/teaching/f20/cs763
ARCHIVE_HOST=jackfruit
ARCHIVE=/var/www/html/teaching/f20/cs763
build:
make assets && mkdocs build
@ -27,4 +28,5 @@ archive:
make build
find . -type d -exec chmod a+rx {} \;
find . -type f -exec chmod a+r {} \;
rsync -avzp --relative $(ARCHIVE) -e ssh ./site/ $(ARCHIVE_HOST)
ssh $(ARCHIVE_HOST) mkdir -p $(ARCHIVE)
rsync -avzp --delete -e ssh ./site/ $(ARCHIVE_HOST):$(ARCHIVE)