hypha: add script for quick debugging and set log levels ot warn by default

This commit is contained in:
Alex Zenla
2024-02-01 10:28:17 +00:00
parent bd56de235f
commit e7cea3d7ed
4 changed files with 18 additions and 2 deletions

View File

@ -4,7 +4,7 @@ set -e
export RUSTFLAGS="-Ctarget-feature=+crt-static"
cd "$(dirname "${0}")/.."
HYPHA_DIR="${PWD}"
cargo build --release --target x86_64-unknown-linux-gnu
cargo build --bin hyphactr --release --target x86_64-unknown-linux-gnu
INITRD_DIR="$(mktemp -d /tmp/hypha-initrd.XXXXXXXXXXXXX)"
cp target/x86_64-unknown-linux-gnu/release/hyphactr "${INITRD_DIR}/init"
chmod +x "${INITRD_DIR}/init"