helper scripts for dev
This commit is contained in:
parent
0319df06cc
commit
6a8bbf8fe9
16
commit
Executable file
16
commit
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/env bash
|
||||
|
||||
if [[ $(hostname) != "ladd76" ]]; then
|
||||
echo >&2 "host $(hostname) != 'ladd76'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
git checkout dev
|
||||
./sync
|
||||
git add .
|
||||
git commit
|
||||
git push
|
||||
ssh lentilz 'cd ~/code/gravity-dev && git stash && git pull && git apply stash && npm i'
|
||||
|
||||
17
merge
Executable file
17
merge
Executable file
@ -0,0 +1,17 @@
|
||||
#!/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'
|
||||
|
||||
9
sync
Executable file
9
sync
Executable file
@ -0,0 +1,9 @@
|
||||
#!/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/
|
||||
Loading…
x
Reference in New Issue
Block a user