make daemon output build logs to treehouse_build.log

This commit is contained in:
liquidex 2024-12-09 19:58:40 +01:00
parent 534c6f9088
commit 734f1e096b

View file

@ -11,7 +11,7 @@ mkfifo $reload_fifo
reload() { reload() {
# This just kind of assumes regeneration doesn't take too long. # This just kind of assumes regeneration doesn't take too long.
cargo build --release cargo build --release > "$build_log" 2>&1
kill "$treehouse_pid" kill "$treehouse_pid"
cargo run --release -- serve --port 8082 > "$build_log" 2>&1 & cargo run --release -- serve --port 8082 > "$build_log" 2>&1 &
treehouse_pid="$!" treehouse_pid="$!"