feat: Add a simple script to remote compile

This commit is contained in:
Clément Renault 2018-09-26 16:16:57 +02:00
parent e43dce7274
commit 10af32bf4b

17
remote-compile.sh Normal file
View File

@ -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/