From eea505cd68c9178388c6cc04f42aaac84fe02610 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 30 Dec 2020 12:20:11 +0100 Subject: Configurable deploy target --- scripts/deploy.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/deploy.sh (limited to 'scripts/deploy.sh') 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 @@ +#!/bin/bash + +source "site.defaults.conf" + +if [ -f "site.conf" ]; then + source "site.conf" +fi + +echo -e "\033[0;32m[DEPLOY ]\033[0m $DEPLOY_TARGET" +rsync --progress --stats -avz --delete "$OUTPUT_DIR" "$DEPLOY_TARGET" -- cgit v1.2.3-70-g09d2