~schnouki/schnouki.net

3b87be94fb6d0130e96a2deea9220c4359ec9020 — Thomas Jost 1 year, 27 days ago 0668f4f
Fix deployment
3 files changed, 4 insertions(+), 1 deletions(-)

M .build.yml
M .gitignore
M Makefile
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)