summaryrefslogtreecommitdiff
path: root/Makefile
blob: ceda70a9e7450f3ff49b8588747fba1f8e8f58db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
all: clean build

build:
	hugo --ignoreCache --log=true --logFile=./log/hugo.log --verbose=false 1>/dev/null

clean:
	rm -rf public 

list:
	ls public

index:
	cat public/index.html

deploy: clean build
	if [ -d /var/www/www.iamfabulous.de ]; then\
		( rsync --delete  -avz public/ /var/www/www.iamfabulous.de/ 1>/dev/null 2>/dev/null && \
		echo "Success: Site www.iamfabulous.de was built.") || ./error.sh; \
	else \
		rsync --delete -avze ssh public/ online:/var/www/www.iamfabulous.de/; \
	fi

serve:
	hugo serve