embassy/tests/perf-server/deploy.sh

11 lines
281 B
Bash
Raw Permalink Normal View History

2023-06-06 02:28:00 +02:00
#!/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'