From 796f116f1d146607c479b91a3046a16aa7720403 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 5 Apr 2020 19:08:35 +0200 Subject: [PATCH] Add deploy and ignore --- .gitignore | 1 + makefile | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .gitignore create mode 100644 makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45ddf0a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +site/ diff --git a/makefile b/makefile new file mode 100644 index 0000000..31b2d88 --- /dev/null +++ b/makefile @@ -0,0 +1,13 @@ +DEST := /var/www/wiki +REMOTE := hbbs.decentral1.se +RSYNC := rsync -chavzP --rsync-path="sudo -su www-data rsync" +SRC := site/* + + +.PHONY: build +build: + @mkdocs build + +.PHONY: publish +publish: build + $(RSYNC) $(SRC) $(REMOTE):$(DEST)