diff --git a/scripts/deploy.sh b/scripts/deploy.sh index f349f87..78de63c 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -11,9 +11,12 @@ source "$ROOT_DIR/scripts/config.sh" git push origin main # SSH to target: pull, build, sync apps, restart -ssh "$SSH_HOST" DEST="$DEST" APPS_DIR="$APPS_DIR" bash <<'SCRIPT' +ssh "$SSH_HOST" bash <<'SCRIPT' set -e +DEST="${DEST:-$HOME/toes}" +APPS_DIR="${APPS_DIR:-$HOME/apps}" + cd "$DEST" && git checkout -- bun.lock && git pull origin main && bun install && rm -rf dist && bun run build echo "=> Syncing default apps..."