Merge branch 'master' of git.ccczh.ch:cosin/cosin_website
This commit is contained in:
commit
c3a3fc53ba
1 changed files with 5 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -4,14 +4,17 @@ SSH_HOST = www.cosin.ch
|
||||||
SSH_USER = root
|
SSH_USER = root
|
||||||
TARGET_DIR = /var/www/cosin/
|
TARGET_DIR = /var/www/cosin/
|
||||||
|
|
||||||
.PHONY: generate upload clean
|
.PHONY: generate server upload clean
|
||||||
|
|
||||||
|
|
||||||
generate:
|
generate:
|
||||||
hugo
|
hugo
|
||||||
|
|
||||||
|
server:
|
||||||
|
hugo server
|
||||||
|
|
||||||
upload: generate
|
upload: generate
|
||||||
rsync --rsh=ssh -P -rvzc --cvs-exclude --delete --exclude=fahrplan/ $(OUTPUT_DIR)/ $(SSH_USER)@$(SSH_HOST):$(TARGET_DIR)
|
rsync -P -rvzc --delete --exclude=fahrplan/ $(OUTPUT_DIR)/ $(SSH_USER)@$(SSH_HOST):$(TARGET_DIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OUTPUT_DIR)
|
rm -rf $(OUTPUT_DIR)
|
||||||
|
|
Loading…
Reference in a new issue