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 #!/usr/bin/env bash
HOST="${HOST:-chris@nose-pluto.local}" HOST="${HOST:-chris@nose-pluto.local}"
DEST="${DEST:-~/pluto}" DEST="${DEST:-~/pluto}"
NOSE_DIR="${NOSE_DIR:-~/nose}"

View File

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

View File

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