~cdv/chris.vittal.dev

chris.vittal.dev/Makefile -rw-r--r-- 395 bytes View raw
09f0c96eChris Vittal Update quote style a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.POSIX:
.PHONY: build drafts
# defines USER HOST TARGET
include secrets/vars

SYNC=nginx.conf public

build:
	zola build

drafts:
	zola build --drafts

# assumes an rsync daemon, configured to accept $(TARGET)
deploy: build
	rsync -rzl -v \
		--delete \
		--exclude='**/*.swp' \
		$(SYNC) \
		$(USER)@$(HOST)::$(TARGET)/chris.vittal.dev
	ssh $(USER)@$(HOST) sudo systemctl restart nginx.service