local_chat/dev.sh

8 lines
193 B
Bash
Raw Normal View History

2024-10-08 19:54:34 -05:00
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
(trap 'kill 0' SIGINT; \
bash -c 'cd frontend; trunk serve' & \
bash -c 'cargo watch -i chat_log -- cargo run --bin server -- --port 8081')