summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosty <passedgoadngot200@disroot.org>2025-09-16 18:24:13 -0400
committerfrosty <passedgoadngot200@disroot.org>2025-09-16 18:24:13 -0400
commit06ba136a9d4ea6b96780cf33d84ec72a9eaefca4 (patch)
tree27e940c9a07ee65098893fa9be250b19deeaec75
parent01a2f10cfa100996e18e52f245f0be2baf545a00 (diff)
downloadwww-06ba136a9d4ea6b96780cf33d84ec72a9eaefca4.tar.gz
www-06ba136a9d4ea6b96780cf33d84ec72a9eaefca4.zip
add deploy target to Makefile
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e5590c5..266fc77 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
.POSIX:
.SUFFIXES:
-HUGO ?= hugo
+HUGO ?= hugo
+RSYNC ?= rsync -avzP --delete --rsync-path='doas -u nginx -- rsync'
+REMOTE ?= blizzard:/var/www/home/
all: build
@@ -14,4 +16,7 @@ build: clean
serve: clean
@$(HUGO) serve --disableFastRender
-.PHONY: all clean build serve
+deploy: build
+ @$(RSYNC) public/ $(REMOTE)
+
+.PHONY: all clean build serve deploy