#!/usr/bin/env bash set -euo pipefail # 1. Langfuse 活着 curl -s http://127.0.0.1:3000/api/public/health # 2. 写入模式 docker exec langfuse-langfuse-web-1 printenv LANGFUSE_MIGRATION_V4_WRITE_MODE docker exec langfuse-langfuse-worker-1 printenv LANGFUSE_MIGRATION_V4_WRITE_MODE # 3. Dify 开关 docker exec docker-db_postgres-1 psql -U postgres -d dify -c "SELECT name, tracing FROM apps;" # 4. 密钥还在 docker exec langfuse-postgres-1 psql -U postgres -d postgres -c "SELECT public_key, project_id FROM api_keys;" # 5. Dify 容器出网 docker exec docker-worker-1 curl -s -m 8 http://192.168.110.207:3000/api/public/health