hugo-ullmann.space/Makefile

14 lines
332 B
Makefile
Raw Normal View History

2023-01-06 20:44:00 +00:00
OUTPUTDIR=./public
2023-10-14 20:53:03 +00:00
SSH_HOST=n-fi
2023-01-06 20:44:00 +00:00
SSH_USER=rullmann
SSH_TARGET_DIR=/var/www/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)/
ssh ${SSH_HOST} "sudo chown -R nginx: ${SSH_TARGET_DIR}"
2023-01-06 20:44:00 +00:00
server:
hugo server -D