17 lines
270 B
Bash
Executable File
17 lines
270 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ROOT=$(dirname $0)/..
|
|
pushd $ROOT
|
|
|
|
set -ex
|
|
|
|
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
|
|
|