update installer
This commit is contained in:
parent
1c3dd16517
commit
c0633526cf
|
|
@ -2,4 +2,3 @@
|
||||||
|
|
||||||
HOST="${HOST:-chris@nose-pluto.local}"
|
HOST="${HOST:-chris@nose-pluto.local}"
|
||||||
DEST="${DEST:-~/pluto}"
|
DEST="${DEST:-~/pluto}"
|
||||||
NOSE_DIR="${NOSE_DIR:-~/nose}"
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user