From 90c2bd1130dacf47c047e4ee4ebc4b9e69d544ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 14 Apr 2022 00:43:37 +0200 Subject: [PATCH] Makefile: Add update and deploy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 1159b64..b29e288 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,20 @@ # Maxime “pep” Buquet, 2018-02-21 00:12 # +WEBROOT ?= "/var/www/bouah.net" + all: public +deploy: clean update drafts public + mv drafts public/_drafts + cp -rv $(WEBROOT)/specs $(WEBROOT)/files public/ + rm -rf $(WEBROOT) + mv public $(WEBROOT) + +update: + git pull -r + git submodule update + public: clean hugo --debug --destination public systemctl --user start blog-goaccess.service