diff options
author | Volpeon <git@volpeon.ink> | 2020-12-30 12:20:11 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2020-12-30 12:20:11 +0100 |
commit | eea505cd68c9178388c6cc04f42aaac84fe02610 (patch) | |
tree | 65d23b8151bafe08d44d707fc8b7d90c04cf0e1f | |
parent | More generic font compression script (diff) | |
download | volpeon.ink-eea505cd68c9178388c6cc04f42aaac84fe02610.tar.gz volpeon.ink-eea505cd68c9178388c6cc04f42aaac84fe02610.tar.bz2 volpeon.ink-eea505cd68c9178388c6cc04f42aaac84fe02610.zip |
Configurable deploy target
-rw-r--r-- | Makefile | 3 | ||||
-rwxr-xr-x | scripts/deploy.sh | 10 | ||||
-rw-r--r-- | site.defaults.conf | 2 |
3 files changed, 13 insertions, 2 deletions
@@ -48,7 +48,6 @@ serve_only: build_only | |||
48 | serve: watch serve_only | 48 | serve: watch serve_only |
49 | 49 | ||
50 | deploy: build | 50 | deploy: 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 | |||
3 | source "site.defaults.conf" | ||
4 | |||
5 | if [ -f "site.conf" ]; then | ||
6 | source "site.conf" | ||
7 | fi | ||
8 | |||
9 | echo -e "\033[0;32m[DEPLOY ]\033[0m $DEPLOY_TARGET" | ||
10 | rsync --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 @@ | |||
1 | SITE="https://volpeon.ink/" | 1 | SITE="https://volpeon.ink/" |
2 | 2 | ||
3 | DEPLOY_TARGET="vulpes@94.130.78.123:/srv/http/volpeon.ink/" | ||
4 | |||
3 | CONTENT_DIR="content/" | 5 | CONTENT_DIR="content/" |
4 | ASSETS_DIR="assets/" | 6 | ASSETS_DIR="assets/" |
5 | FILTERS_DIR="filters/" | 7 | FILTERS_DIR="filters/" |