From 10af32bf4b3653a0fc6af38443a6fba4e44d9bf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 26 Sep 2018 16:16:57 +0200 Subject: [PATCH] feat: Add a simple script to remote compile --- remote-compile.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 remote-compile.sh diff --git a/remote-compile.sh b/remote-compile.sh new file mode 100644 index 000000000..cd20ac4b3 --- /dev/null +++ b/remote-compile.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# stop at first error +set -ex + +ssh remote-compilation << EOF + set -ex + + cd Documents/raptor-rs + cargo build --release --bin raptor-http + + tar czf raptor.tar.gz -C target/release raptor-http +EOF + +scp remote-compilation:Documents/raptor-rs/raptor.tar.gz /etc/raptor/ + +tar xzf /etc/raptor/raptor.tar.gz -C /etc/raptor/