diff --git a/Makefile b/Makefile index 5e2c296..289f900 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ deploy: + cargo build --release ssh raspiwork 'cd /home/pi/Scripts/rust_device && git pull && make build' scp raspiwork:/home/pi/Scripts/rust_device/target/release/device raspigate:/home/pi/Scripts/device diff --git a/deploy.sh b/deploy.sh deleted file mode 100644 index 478c787..0000000 --- a/deploy.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -set -o errexit -set -o nounset -set -o pipefail -set -o xtrace - -readonly TARGET_HOST=raspiwork -readonly TARGET_PATH=/home/pi/Scripts/device -readonly TARGET_ARCH=aarch64-unknown-linux-gnu -readonly SOURCE_PATH=./target/${TARGET_ARCH}/release/device - -cargo build --release --target=${TARGET_ARCH} -scp ${SOURCE_PATH} ${TARGET_HOST}:${TARGET_PATH}