M .build.yml => .build.yml +1 -0
@@ 8,6 8,7 @@ sources:
- https://git.sr.ht/~schnouki/schnouki.net
environment:
DEPLOY_HOST: schnouki@vps-b8fddfe6.vps.ovh.net
+ DEPLOY_PORT: 222
DEPLOY_PATH: /
secrets:
- cbdbfd58-46d3-4abb-abe1-3eed67fe6ec0
M .gitignore => .gitignore +1 -0
@@ 3,3 3,4 @@
/public
/resources/_gen
/hugo_stats.json
+/.hugo_build.lock<
\ No newline at end of file
M Makefile => Makefile +2 -1
@@ 1,6 1,7 @@
.PHONY: help build build-clean clean npm-install serve upload
DEPLOY_HOST ?= ks
+DEPLOY_PORT ?= 22
DEPLOY_PATH ?= /srv/http/schnouki.net/htdocs-hugo
UPLOAD_TARGET = $(DEPLOY_HOST):$(DEPLOY_PATH)
@@ 34,5 35,5 @@ serve:
hugo serve $(SERVE_OPTS)
upload: | build
- rsync -crvzP -e "ssh -o StrictHostKeyChecking=accept-new" \
+ rsync -crvzP -e "ssh -o StrictHostKeyChecking=accept-new -p $(DEPLOY_PORT)" \
--delete public/ $(UPLOAD_TARGET)