Compare commits

..

No commits in common. "54868aeba86e162a40c4a3e9a2089b8c458f3082" and "0319df06cc6d055cbaa2f642bfe1d265ddfb1755" have entirely different histories.

4 changed files with 0 additions and 76 deletions

29
commit
View File

@ -1,29 +0,0 @@
#!/bin/env bash
if [[ $(hostname) != "ladd76" ]]; then
echo >&2 "host $(hostname) != 'ladd76'"
exit 1
fi
set -eo pipefail
git checkout dev
./sync
if git diff; then
git add .
git commit "$@"
git push
fi
ssh lentilz "
set -oe pipefail
export NVM_DIR=\"\$HOME/.nvm\"
[ -s \"\$NVM_DIR/nvm.sh\" ] && \. \"\$NVM_DIR/nvm.sh\" # This loads nvm
cd ~/code/gravity-dev
git add .
git stash
git pull
git stash apply
npm i
"
echo >&2
echo >&2 "Committed and deployed to https://laddhoffman.com/gravity-dev/"

18
deploy
View File

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

17
merge
View File

@ -1,17 +0,0 @@
#!/bin/env bash
if [[ $(hostname) != "ladd76" ]]; then
echo >&2 "host $(hostname) != 'ladd76'"
exit 1
fi
set -eo pipefail
./commit
git checkout main
git pull
git merge dev
git push
git checkout dev
ssh lentilz 'cd ~/code/gravity-live && git pull'

12
sync
View File

@ -1,12 +0,0 @@
#!/bin/env bash
if [[ $(hostname) != "ladd76" ]]; then
echo >&2 "host $(hostname) != 'ladd76'"
exit 1
fi
rsync -ru --exclude='.git' --exclude='node_modules' ~/code/gravity-dev/ lentilz:code/gravity-dev/
rsync -ru --exclude='.git' --exclude='node_modules' lentilz:code/gravity-dev/ ~/code/gravity-dev/
echo >&2
echo >&2 "Synced with https://laddhoffman.com/gravity-dev/"