2025-08-21 01:27:04 +08:00
|
|
|
# Script called from makefile to auto down the tilt environment on ctrl + c.
|
|
|
|
# Paths are relative to the makefile
|
|
|
|
|
|
|
|
function tilt_down()
|
|
|
|
{
|
|
|
|
echo "Tearing down Tilt environment... (this might take a little while)"
|
|
|
|
tilt down -f devenv/frontend-service/Tiltfile
|
|
|
|
}
|
|
|
|
|
2025-09-05 00:17:32 +08:00
|
|
|
# Create placeholder files to prevent docker from creating folders here instead
|
|
|
|
# when it attempts to mount them into the docker containers
|
|
|
|
touch devenv/frontend-service/configs/grafana-api.local.ini
|
|
|
|
touch devenv/frontend-service/configs/frontend-service.local.ini
|
2025-08-21 01:27:04 +08:00
|
|
|
|
2025-09-05 00:17:32 +08:00
|
|
|
if [[ "${AUTO_DOWN}" != "false" ]]; then
|
|
|
|
trap tilt_down SIGINT
|
|
|
|
fi
|
2025-08-21 01:27:04 +08:00
|
|
|
|
2025-09-05 00:17:32 +08:00
|
|
|
tilt up -f devenv/frontend-service/Tiltfile
|