finish new deploy
This commit is contained in:
1
Makefile
1
Makefile
@@ -1,4 +1,5 @@
|
|||||||
deploy:
|
deploy:
|
||||||
|
cargo build --release
|
||||||
ssh raspiwork 'cd /home/pi/Scripts/rust_device && git pull && make build'
|
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
|
scp raspiwork:/home/pi/Scripts/rust_device/target/release/device raspigate:/home/pi/Scripts/device
|
||||||
|
|
||||||
|
|||||||
14
deploy.sh
14
deploy.sh
@@ -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}
|
|
||||||
Reference in New Issue
Block a user