summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile19
-rwxr-xr-xdeploy9
2 files changed, 19 insertions, 9 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
diff --git a/deploy b/deploy
deleted file mode 100755
index 94351c9..0000000
--- a/deploy
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-#
-
-set -e
-
-zola build
-rsync -r $(pwd)/public/ puffy@dcontroller:/var/www/htdocs/rgoncalves.se
-rsync -r $(pwd)/httpd.conf root@dcontroller:/etc/httpd.conf
-rm -r public
remember that computers suck.