mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 23:02:30 +00:00
11 lines
281 B
Bash
Executable File
11 lines
281 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
HOST=root@192.168.1.3
|
|
|
|
cargo build --release
|
|
ssh $HOST -- systemctl stop perf-server
|
|
scp target/release/perf-server $HOST:/root
|
|
scp perf-server.service $HOST:/etc/systemd/system/
|
|
ssh $HOST -- 'systemctl daemon-reload; systemctl restart perf-server' |