This commit is contained in:
Lentil Hoffman 2025-12-29 11:42:43 -06:00
parent 1b14843070
commit bb331a8a40
Signed by: lentil
GPG Key ID: 0F5B99F3F4D0C087

14
deploy
View File

@ -1,10 +1,4 @@
#!/bin/env bash
if [[ $(hostname) != "ladd76" ]]; then
echo >&2 "host $(hostname) != 'ladd76'"
exit 1
fi
set -eo pipefail
git checkout main
@ -12,7 +6,13 @@ git pull
git merge dev
git push
git checkout dev
ssh lentilz 'cd ~/code/gravity-live && git pull'
if [[ $(hostname) == "ladd76" ]]; then
ssh lentilz 'cd ~/code/gravity-live && git pull'
elif [[ $(hostname) == "lentilz" ]]; then
pushd ~/code/gravity-live
git pull
fi
echo >&2
echo >&2 "Deployed to https://laddhoffman.com/gravity/"