2024-05-11 15:50:24 +02:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
echo "starting services"
|
|
|
|
docker compose -f templates/docker-compose.yaml up -d --remove-orphans
|
|
|
|
|
2024-05-11 16:23:52 +02:00
|
|
|
sleep 5
|
|
|
|
|
2024-05-11 15:50:24 +02:00
|
|
|
tear_down() {
|
2024-05-11 16:23:52 +02:00
|
|
|
echo "cleaning up services in the background"
|
|
|
|
(docker compose -f templates/docker-compose.yaml down -v &) > /dev/null 2>&1
|
2024-05-11 15:50:24 +02:00
|
|
|
}
|
|
|
|
|
2024-05-11 16:23:52 +02:00
|
|
|
trap tear_down SIGINT
|
2024-05-11 15:50:24 +02:00
|
|
|
|
2024-05-11 16:23:52 +02:00
|
|
|
RUST_LOG=info,hyperlog=trace cargo run -F include_server -- serve
|