From c0633526cff89ffc6244704a44d849488fb3d40f Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Mon, 22 Sep 2025 14:56:31 -0700 Subject: [PATCH] update installer --- app/scripts/config.sh | 3 +-- app/scripts/deploy.sh | 7 ++----- app/scripts/nose-pluto.service | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/scripts/config.sh b/app/scripts/config.sh index 20b89d4..65d0e87 100644 --- a/app/scripts/config.sh +++ b/app/scripts/config.sh @@ -1,5 +1,4 @@ #!/usr/bin/env bash HOST="${HOST:-chris@nose-pluto.local}" -DEST="${DEST:-~/pluto}" -NOSE_DIR="${NOSE_DIR:-~/nose}" \ No newline at end of file +DEST="${DEST:-~/pluto}" \ No newline at end of file diff --git a/app/scripts/deploy.sh b/app/scripts/deploy.sh index fa1ead2..be85dda 100755 --- a/app/scripts/deploy.sh +++ b/app/scripts/deploy.sh @@ -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" diff --git a/app/scripts/nose-pluto.service b/app/scripts/nose-pluto.service index 57602a4..bde5df3 100644 --- a/app/scripts/nose-pluto.service +++ b/app/scripts/nose-pluto.service @@ -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