add makefile for easier deployment

This commit is contained in:
Rico Ullmann 2022-03-30 13:23:17 +02:00
parent 5e46f93124
commit 9fd9c0c4d2
Signed by: rullmann
GPG Key ID: AE1066B5BD0B5041
1 changed files with 12 additions and 0 deletions

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
OUTPUTDIR=./public
SSH_HOST=n-mail
SSH_USER=rullmann
SSH_TARGET_DIR=/var/www/recipes.ullmann.space/htdocs
ssh_upload:
hugo
rsync --delete -r --cvs-exclude --info=progress2 --rsync-path="sudo rsync" $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)/
server:
hugo server -D