web

A collection of scripts used to generate this website
git clone https://erai.gay/code/web/
Log | Files | Refs | LICENSE

commit 3b3ef08b61587a8e2a1c27b77bc59fa9bef957a5
parent 5dc3585947058727729acd5201ec70e4de726965
Author: erai <erai@omiltem.net>
Date:   Mon,  9 Sep 2024 11:34:42 -0400

Update deploy script for remote hosts

Diffstat:
Mdeploy.sh | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/deploy.sh b/deploy.sh @@ -1,9 +1,17 @@ #!/bin/bash set -uex +if [ $# -ne 1 ]; then + echo "Usage: ./deploy.sh <host>" + exit 1 +fi +case "$1" in +localhost) target="" ;; +*) target="$1:" ;; +esac git pull --verify-signatures --ff-only origin main if [ "$(git show -s --pretty='%G?')" != 'G' ]; then echo "Failed to verify signature" >&2 exit 1 fi make -rsync --delete -r build/ /app/web/ +rsync --delete -vr build/ "${target}/app/web/"