Makefile: Add update and deploy
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
4828bce9d4
commit
90c2bd1130
1 changed files with 12 additions and 0 deletions
12
Makefile
12
Makefile
|
@ -3,8 +3,20 @@
|
||||||
# Maxime “pep” Buquet, 2018-02-21 00:12
|
# Maxime “pep” Buquet, 2018-02-21 00:12
|
||||||
#
|
#
|
||||||
|
|
||||||
|
WEBROOT ?= "/var/www/bouah.net"
|
||||||
|
|
||||||
all: public
|
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
|
public: clean
|
||||||
hugo --debug --destination public
|
hugo --debug --destination public
|
||||||
systemctl --user start blog-goaccess.service
|
systemctl --user start blog-goaccess.service
|
||||||
|
|
Loading…
Reference in a new issue