Add Makefile for website deployment
This commit is contained in:
parent
585b173df5
commit
d9c9a0466d
1 changed files with 17 additions and 0 deletions
17
Makefile
Normal file
17
Makefile
Normal 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)
|
Loading…
Reference in a new issue