Add Makefile for website deployment

This commit is contained in:
Raoul 2018-04-29 17:11:44 +02:00
parent 585b173df5
commit d9c9a0466d
No known key found for this signature in database
GPG key ID: C7493D73B67C1842

17
Makefile Normal file
View file

@ -0,0 +1,17 @@
OUTPUT_DIR = public
SSH_HOST = www.cosin.ch
SSH_USER = root
TARGET_DIR = /var/www/cosin/
.PHONY: generate upload clean
generate:
hugo
upload: generate
rsync --rsh=ssh -P -rvzc --cvs-exclude --delete --exclude=fahrplan/ $(OUTPUT_DIR)/ $(SSH_USER)@$(SSH_HOST):$(TARGET_DIR)
clean:
rm -rf $(OUTPUT_DIR)