Add deploy and ignore

This commit is contained in:
Luke Murphy 2020-04-05 19:08:35 +02:00
parent 6bf55b980d
commit 796f116f1d
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
site/

13
makefile Normal file
View File

@ -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)