Add scp to deploy script

This commit is contained in:
2025-10-29 20:27:36 +08:00
parent d138455c5d
commit f7e3137de7

View File

@@ -5,5 +5,12 @@ pushd $ROOT
set -ex set -ex
cargo build --profile extra-small DST=$1
cp -f target/extra-small/blog-server ./ 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