We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f01316f commit 9feb454Copy full SHA for 9feb454
actix_hello_world/.cargo/config
@@ -0,0 +1,2 @@
1
+[target.armv7-unknown-linux-gnueabihf]
2
+linker = "arm-linux-gnueabihf-gcc"
actix_hello_world/deploy
@@ -0,0 +1,14 @@
+#!/bin/bash
+
3
+set -o errexit
4
+set -o nounset
5
+set -o xtrace
6
7
+readonly [email protected]
8
+readonly TARGET_PATH=/home/pi/actix_hello_world
9
+readonly TARGET_ARCH=armv7-unknown-linux-gnueabihf
10
+readonly SOURCE_PATH=./target/${TARGET_ARCH}/release/actix_hello_world
11
12
+cargo build --release --target=${TARGET_ARCH}
13
+rsync ${SOURCE_PATH} ${TARGET_HOST}:${TARGET_PATH}
14
+ssh -t ${TARGET_HOST} ${TARGET_PATH}
0 commit comments