refactor: remove portal deployment coupling
This commit is contained in:
@@ -54,13 +54,13 @@ if [ "$response" != '{"backend":"fastify","path":"/health"}' ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! rg -Fq 'THT_FRONTEND_API_UPSTREAM="http://localhost:$BACKEND_PORT"' "$ROOT/scripts/run-stack.sh"; then
|
||||
echo "run-stack.sh must configure the Vite internal upstream from BACKEND_PORT" >&2
|
||||
if ! rg -Fq -- '-f "$ROOT/compose.yaml" -f "$ROOT/deploy/compose.local.yaml" up --build "$@"' "$ROOT/scripts/run-stack.sh"; then
|
||||
echo "run-stack.sh must start the base+local Compose stack" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if rg -q 'VITE_BACKEND_URL' "$ROOT/scripts/run-stack.sh"; then
|
||||
echo "run-stack.sh must keep the browser base on /api" >&2
|
||||
if rg -q 'command -v pi|PI_BIN="pi"|PI_BIN=pi' "$ROOT/scripts/run-stack.sh"; then
|
||||
echo "run-stack.sh must not require a host Pi binary" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user