hyperlog/scripts/dev.sh
kjuulh 4a0fcd1bbb
All checks were successful
continuous-integration/drone/push Build is passing
feat: move core to tui and begin grpc work
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-05-11 23:23:00 +02:00

16 lines
370 B
Bash
Executable File

#!/usr/bin/env zsh
echo "starting services"
docker compose -f templates/docker-compose.yaml up -d --remove-orphans
sleep 5
tear_down() {
echo "cleaning up services in the background"
(docker compose -f templates/docker-compose.yaml down -v &) > /dev/null 2>&1
}
trap tear_down SIGINT
RUST_LOG=info,hyperlog=trace cargo watch -x 'run -F include_server -- serve'