FS: Replace frontend-service-up with command that auto shuts down (#109933)

This commit is contained in:
Josh Hunt 2025-08-20 18:27:04 +01:00 committed by GitHub
parent 7fd5121c4f
commit 95ea14cc72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 7 deletions

View File

@ -283,13 +283,9 @@ run-bra: ## [Deprecated] Build and run web server on filesystem changes. See /.b
frontend-service-check:
./devenv/frontend-service/local-init.sh
.PHONY: frontend-service-up
frontend-service-up: frontend-service-check
tilt up -f devenv/frontend-service/Tiltfile
.PHONY: frontend-service-down
frontend-service-down: frontend-service-check
tilt down -f devenv/frontend-service/Tiltfile
.PHONY: frontend-service
frontend-service: frontend-service-check
bash ./devenv/frontend-service/run.sh
##@ Testing

View File

@ -0,0 +1,13 @@
# 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
}
trap tilt_down SIGINT
tilt up -f devenv/frontend-service/Tiltfile