Fix/main build 2 (#2819)

* Removed double slash

* Fixing race condition with testing

* Created cleaner solution

* Keeping flash alive longer so tests finish in main build
This commit is contained in:
Alex Janousek
2025-08-07 15:52:56 -04:00
committed by GitHub
parent 843699061d
commit 5c00ee1840
4 changed files with 22 additions and 3 deletions

View File

@@ -44,6 +44,12 @@ watch-frontend: ## Build frontend and watch for changes
run-flask: ## Run flask
poetry run newrelic-admin run-program flask run -p 6012 --host=0.0.0.0
.PHONY: wait-for-flask
wait-for-flask:
@echo "Waiting for Flask to start..."
@timeout 30 bash -c 'until curl -sf http://localhost:6012 > /dev/null 2>&1; do sleep 1; done'
@echo "Flask is ready!"
.PHONY: run-flask-and-wait
run-flask-and-wait:
@make run-flask &