Add scp to deploy script
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user