#!/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