19 lines
406 B
Bash
Executable File
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'
|