summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-01-20 14:13:11 +0100
committerRomain Gonçalves <me@rgoncalves.se>2021-01-20 14:13:11 +0100
commit686b024961bb3c9b77a68e373e6700b8e702dc61 (patch)
treecc0e5de35c793afc5dd7100b7f2f68d87d627a1b /Makefile
parente80f58116a9ecd67b2febe06778c624fd42ed1c6 (diff)
downloadwebsite-686b024961bb3c9b77a68e373e6700b8e702dc61.tar.gz
Use makefile instaed of script for deployment
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
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
remember that computers suck.