2023-03-04 23:12:24 +01:00
|
|
|
#!/bin/sh
|
2023-06-09 00:16:37 +02:00
|
|
|
set -e # Exit on any error
|
2023-03-04 23:12:24 +01:00
|
|
|
cd "$( dirname "$( realpath "$0" )" )"
|
|
|
|
|
2023-06-09 00:16:37 +02:00
|
|
|
pull(){
|
2023-03-04 23:12:24 +01:00
|
|
|
git pull
|
|
|
|
}
|
|
|
|
|
2023-06-09 00:16:37 +02:00
|
|
|
push(){
|
2023-03-04 23:12:24 +01:00
|
|
|
git add .
|
2023-03-06 23:24:23 +01:00
|
|
|
git commit -m "Manual push $(date)"
|
2023-03-04 23:12:24 +01:00
|
|
|
git push
|
|
|
|
}
|
|
|
|
|
2023-06-09 00:16:37 +02:00
|
|
|
deploy(){
|
|
|
|
Path="$1"
|
|
|
|
[ -n "$Path" ] || Path="/tmp/OcttKB-Deploy"
|
|
|
|
echo "Local Deploy to: $Path"
|
|
|
|
sleep 5
|
|
|
|
rm -rf "$Path"
|
|
|
|
cp -r . "$Path"
|
|
|
|
cd "$Path"
|
|
|
|
bash ./Bootstrap.sh
|
|
|
|
bash ./Deploy.Main.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
$@
|