mirror of https://github.com/grafana/grafana.git
FS: Replace frontend-service-up with command that auto shuts down (#109933)
This commit is contained in:
parent
7fd5121c4f
commit
95ea14cc72
10
Makefile
10
Makefile
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue