From f7e3137de7f93575a947f1e410fb131df817e3a7 Mon Sep 17 00:00:00 2001 From: Guus Waals <_@guusw.nl> Date: Wed, 29 Oct 2025 20:27:36 +0800 Subject: [PATCH] Add scp to deploy script --- scripts/deploy | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/deploy b/scripts/deploy index 67af07b..21f322a 100755 --- a/scripts/deploy +++ b/scripts/deploy @@ -5,5 +5,12 @@ pushd $ROOT set -ex -cargo build --profile extra-small -cp -f target/extra-small/blog-server ./ +DST=$1 +if [[ -z "$DST" ]]; then + echo "Require destination and path argument DST:${DST}" + exit 1 +fi + +cargo build --profile extra-small --target x86_64-unknown-linux-gnu +scp target/extra-small/blog-server $DST +