Files
blog/scripts/deploy
2025-10-29 20:27:47 +08:00

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