try this
This commit is contained in:
parent
99ded15a60
commit
0fda889211
|
|
@ -7,7 +7,8 @@
|
||||||
"start": "bun src/server.tsx",
|
"start": "bun src/server.tsx",
|
||||||
"dev": "env BUN_HOT=1 bun --hot src/server.tsx",
|
"dev": "env BUN_HOT=1 bun --hot src/server.tsx",
|
||||||
"deploy": "./scripts/deploy.sh",
|
"deploy": "./scripts/deploy.sh",
|
||||||
"push": "./scripts/deploy.sh"
|
"push": "./scripts/deploy.sh",
|
||||||
|
"setup": "./scripts/deploy.sh"
|
||||||
},
|
},
|
||||||
"alias": {
|
"alias": {
|
||||||
"@utils": "./src/utils.tsx",
|
"@utils": "./src/utils.tsx",
|
||||||
|
|
|
||||||
21
scripts/setup.sh
Normal file
21
scripts/setup.sh
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
##
|
||||||
|
# setup your NOSEputer from your dev machine
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
HOST="chris@nose-pluto.local"
|
||||||
|
DEST="~/pluto"
|
||||||
|
SOCK="$HOME/.ssh/cm-%r@%h:%p"
|
||||||
|
|
||||||
|
# 1) Open a master connection (prompts once)
|
||||||
|
ssh -MNf -o ControlMaster=yes -o ControlPersist=120 \
|
||||||
|
-o ControlPath="$SOCK" "$HOST"
|
||||||
|
|
||||||
|
|
||||||
|
# 2) remote install (reuses the connection)
|
||||||
|
ssh -o ControlPath="$SOCK" "$HOST" "cd $DEST && ./scripts/install.sh && sudo systemctl start nose-pluto.service"
|
||||||
|
|
||||||
|
# 3) close the master connection
|
||||||
|
ssh -O exit -o ControlPath="$SOCK" "$HOST"
|
||||||
Loading…
Reference in New Issue
Block a user