embassy/tests/perf-server/deploy.sh
2023-06-06 02:50:57 +02:00

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'