relative
This commit is contained in:
parent
7534b65925
commit
662fc42ff7
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
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:
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
source ./app/scripts/config.sh
|
||||
set -e
|
||||
|
||||
# Get absolute path of this script’s 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"
|
||||
|
|
@ -1,3 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
source ./app/scripts/config.sh
|
||||
ssh $HOST "cd $DEST && ./app/scripts/install.sh && sudo systemctl start nose-pluto.service"
|
||||
set -e
|
||||
|
||||
# Get absolute path of this script’s 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"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
source ./app/scripts/config.sh
|
||||
ssh $HOST "sudo systemctl restart nose-pluto.service"
|
||||
set -e
|
||||
|
||||
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"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
source ./app/scripts/config.sh
|
||||
ssh $HOST "sudo systemctl start nose-pluto.service"
|
||||
set -e
|
||||
|
||||
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"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
source ./app/scripts/config.sh
|
||||
ssh $HOST "sudo systemctl stop nose-pluto.service"
|
||||
set -e
|
||||
|
||||
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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user