update installer
This commit is contained in:
parent
1c3dd16517
commit
c0633526cf
|
|
@ -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}"
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user