From 686b024961bb3c9b77a68e373e6700b8e702dc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 20 Jan 2021 14:13:11 +0100 Subject: Use makefile instaed of script for deployment --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1d4f183 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ + +# rgoncalves.se website deployment + +REMOTE_LOGIN := root@dc0 +REMOTE_DIR := /var/www/htdocs/rgoncalves.se + +build: + -@zola build + +deploy: + rsync -r public/ $(REMOTE_LOGIN):$(REMOTE_DIR) + ssh $(REMOTE_LOGIN) "chown -R www:www $(REMOTE_DIR)" + +clean: + -@rm -rf public + +all: build deploy clean + +.PHONY: all build deploy -- cgit v1.2.3