~dricottone/blog

ref: 2d9f9bfd44096b0e0a5c41d7fd75169b11999214 blog/Makefile -rw-r--r-- 369 bytes
2d9f9bfdDominic Ricottone Fix cgit CSS 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
TARGET_USER=deploy
TARGET_HOST=deploy-aws2

.PHONY: dev
dev:
	hugo server --buildDrafts --bind 127.0.0.1 --port 8080

.PHONY: build
build: clean
	hugo

.PHONY: sync
sync: build
	rsync --recursive --links --compress --delete \
		--chown=$(TARGET_USER):$(TARGET_USER) \
		public/ $(TARGET_HOST):/var/deploy/webroot/

.PHONY: clean
clean:
	rm -rf public resources themes