mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
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:
6
Makefile
6
Makefile
@@ -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 &
|
||||
|
||||
Reference in New Issue
Block a user