#!/usr/bin/env bash set -euo pipefail ROOT="$(cd "$(dirname "$0")" && pwd)" if [[ -f "${ROOT}/.env.local" ]]; then set -a # shellcheck disable=SC1091 source "${ROOT}/.env.local" set +a fi export TKMIND_API_TARGET="${TKMIND_API_TARGET:-${GOOSE_API_TARGET:-https://127.0.0.1:${GOOSE_PORT:-18006}}}" if curl -sk "${TKMIND_API_TARGET}/status" >/dev/null 2>&1; then echo "✅ goosed 已在运行" else echo "==> 启动 goosed..." "${ROOT}/local_restart.sh" fi "${ROOT}/deploy/deploy-h5-prod.sh" --skip-test