nose-pluto/scripts/deploy.sh
Chris Wanstrath da1bb3f29a simpler
2025-09-16 20:40:29 -07:00

19 lines
406 B
Bash
Executable File

#!/usr/bin/env bash
##
# deploys from your dev machine to your NOSEputer
set -euo pipefail
HOST="chris@nose-pluto.local"
DEST="~/pluto"
# sync (skip node_modules and .git)
rsync -az --delete \
--exclude 'node_modules/' \
--exclude '.git/' \
./ "$HOST:$DEST/"
# install deps + restart service
ssh "$HOST" 'cd ~/pluto && bun install --frozen-lockfile && sudo systemctl restart nose-pluto.service'