Add scp to deploy script

This commit is contained in:
2025-10-29 20:27:36 +08:00
parent 60aee19577
commit 4ccd68e831

View File

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