summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rwxr-xr-xscripts/deploy.sh10
-rw-r--r--site.defaults.conf2
3 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 861b8b6..a72a148 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,6 @@ serve_only: build_only
48serve: watch serve_only 48serve: watch serve_only
49 49
50deploy: build 50deploy: build
51 @echo -e "\033[0;32m[DEPLOY ]\033[0m volpeon.ink" 51 @scripts/deploy.sh
52 @rsync --progress --stats -avz --delete output/ vulpes@94.130.78.123:/srv/http/volpeon.ink/
53 52
54.PHONY: all clean build watch serve deploy 53.PHONY: all clean build watch serve deploy
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
new file mode 100755
index 0000000..129ddda
--- /dev/null
+++ b/scripts/deploy.sh
@@ -0,0 +1,10 @@
1#!/bin/bash
2
3source "site.defaults.conf"
4
5if [ -f "site.conf" ]; then
6 source "site.conf"
7fi
8
9echo -e "\033[0;32m[DEPLOY ]\033[0m $DEPLOY_TARGET"
10rsync --progress --stats -avz --delete "$OUTPUT_DIR" "$DEPLOY_TARGET"
diff --git a/site.defaults.conf b/site.defaults.conf
index 1c44c50..b57abc1 100644
--- a/site.defaults.conf
+++ b/site.defaults.conf
@@ -1,5 +1,7 @@
1SITE="https://volpeon.ink/" 1SITE="https://volpeon.ink/"
2 2
3DEPLOY_TARGET="vulpes@94.130.78.123:/srv/http/volpeon.ink/"
4
3CONTENT_DIR="content/" 5CONTENT_DIR="content/"
4ASSETS_DIR="assets/" 6ASSETS_DIR="assets/"
5FILTERS_DIR="filters/" 7FILTERS_DIR="filters/"