summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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