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 +