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