From 3b87be94fb6d0130e96a2deea9220c4359ec9020 Mon Sep 17 00:00:00 2001 From: Thomas Jost Date: Tue, 1 Nov 2022 21:58:55 +0100 Subject: [PATCH] Fix deployment --- .build.yml | 1 + .gitignore | 1 + Makefile | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.build.yml b/.build.yml index 34d6056..d728e21 100644 --- a/.build.yml +++ b/.build.yml @@ -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 diff --git a/.gitignore b/.gitignore index d171fa3..f0067db 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /public /resources/_gen /hugo_stats.json +/.hugo_build.lock \ No newline at end of file diff --git a/Makefile b/Makefile index 78219a1..4413243 100644 --- a/Makefile +++ b/Makefile @@ -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) -- 2.45.2