2022-03-30 11:23:17 +00:00
|
|
|
OUTPUTDIR=./public
|
|
|
|
|
2023-10-07 16:29:50 +00:00
|
|
|
SSH_HOST=n-navi
|
2022-03-30 11:23:17 +00:00
|
|
|
SSH_USER=rullmann
|
|
|
|
SSH_TARGET_DIR=/var/www/recipes.ullmann.space/htdocs
|
|
|
|
|
|
|
|
ssh_upload:
|
|
|
|
hugo
|
2022-04-02 21:16:37 +00:00
|
|
|
rsync --delete -r --info=progress2 --rsync-path="sudo rsync" $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)/
|
2022-04-05 16:16:48 +00:00
|
|
|
ssh ${SSH_HOST} "sudo chown -R nginx: ${SSH_TARGET_DIR}"
|
2022-03-30 11:23:17 +00:00
|
|
|
|
|
|
|
server:
|
|
|
|
hugo server -D
|