This commit is contained in:
Chris Wanstrath 2025-09-26 11:19:56 -07:00
parent 7534b65925
commit 662fc42ff7
6 changed files with 48 additions and 10 deletions

View File

@ -4,7 +4,7 @@
You just need to make a "nose" user on your RPi and make sure you can ssh in. You just need to make a "nose" user on your RPi and make sure you can ssh in.
Then run `bun deploy && bun remote:install`. Then run `bun remote:install`.
When it's done (it'll reboot) visit: When it's done (it'll reboot) visit:

View File

@ -1,3 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ./app/scripts/config.sh set -e
# Get absolute path of this scripts directory
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
ROOT_DIR="$SCRIPT_DIR/../.."
# Run deploy + config with absolute paths
source "$ROOT_DIR/app/scripts/deploy.sh"
source "$ROOT_DIR/app/scripts/config.sh"
# Run remote install on the target
ssh $HOST "cd $DEST && git pull && bun install && sudo systemctl restart nose-pluto.service" ssh $HOST "cd $DEST && git pull && bun install && sudo systemctl restart nose-pluto.service"

View File

@ -1,3 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ./app/scripts/config.sh set -e
ssh $HOST "cd $DEST && ./app/scripts/install.sh && sudo systemctl start nose-pluto.service"
# Get absolute path of this scripts directory
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
ROOT_DIR="$SCRIPT_DIR/../.."
# Run deploy + config with absolute paths
source "$ROOT_DIR/app/scripts/deploy.sh"
source "$ROOT_DIR/app/scripts/config.sh"
# Run remote install on the target
ssh "$HOST" "cd $DEST && ./app/scripts/install.sh && sudo systemctl start nose-pluto.service"

View File

@ -1,3 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ./app/scripts/config.sh set -e
ssh $HOST "sudo systemctl restart nose-pluto.service"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
ROOT_DIR="$SCRIPT_DIR/../.."
source "$ROOT_DIR/app/scripts/config.sh"
ssh "$HOST" "sudo systemctl restart nose-pluto.service"

View File

@ -1,3 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ./app/scripts/config.sh set -e
ssh $HOST "sudo systemctl start nose-pluto.service"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
ROOT_DIR="$SCRIPT_DIR/../.."
source "$ROOT_DIR/app/scripts/config.sh"
ssh "$HOST" "sudo systemctl start nose-pluto.service"

View File

@ -1,3 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ./app/scripts/config.sh set -e
ssh $HOST "sudo systemctl stop nose-pluto.service"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
ROOT_DIR="$SCRIPT_DIR/../.."
source "$ROOT_DIR/app/scripts/config.sh"
ssh "$HOST" "sudo systemctl stop nose-pluto.service"