update installer

This commit is contained in:
Chris Wanstrath 2025-09-22 14:56:31 -07:00
parent 1c3dd16517
commit c0633526cf
3 changed files with 4 additions and 8 deletions

View File

@ -1,5 +1,4 @@
#!/usr/bin/env bash
HOST="${HOST:-chris@nose-pluto.local}"
DEST="${DEST:-~/pluto}"
NOSE_DIR="${NOSE_DIR:-~/nose}"
DEST="${DEST:-~/pluto}"

View File

@ -19,11 +19,8 @@ rsync -az --delete \
--exclude '.git/' \
./ "$HOST:$DEST/"
# 3) ensure $NOSE_DIR exists
ssh -o ControlPath="$SOCK" "$HOST" "mkdir -p $NOSE_DIR/{www,bin}"
# 4) remote deploy (reuses the connection)
# 3) remote deploy (reuses the connection)
ssh -o ControlPath="$SOCK" "$HOST" "cd $DEST && bun install --frozen-lockfile && sudo systemctl restart nose-pluto.service"
# 5) close the master connection
# 4) close the master connection
ssh -O exit -o ControlPath="$SOCK" "$HOST"

View File

@ -5,7 +5,7 @@ Wants=network-online.target
[Service]
User=chris
WorkingDirectory=/home/chris/pluto
WorkingDirectory=/home/chris/pluto/app
Environment=PORT=80
Environment=NODE_ENV=production
ExecStart=/home/chris/.bun/bin/bun start