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/