Browse Source

Change deploy and archive targets.

master
Justin Hsu 9 months ago
parent
commit
5f882d1b37
  1. 11
      website/Makefile

11
website/Makefile

@ -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)
Loading…
Cancel
Save