diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..de5b47e --- /dev/null +++ b/deploy.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -e + +TARGET=to_binio@ssh.tobinio.dev +BIN_NAME=puma + +cargo build --release --target x86_64-unknown-linux-musl + +scp target/x86_64-unknown-linux-musl/release/$BIN_NAME $TARGET:~/.local/bin/$BIN_NAME +ssh $TARGET "chmod +x ~/.local/bin/$BIN_NAME"