Verify landing redirects and wait for cross-app route deployment
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Run on ces-control after deployment; never starts a preview web server.
|
||||
set -Eeuo pipefail
|
||||
# Wiki and Studio deploy independently; wait for Wiki's canonical route proxy.
|
||||
canonical_ready=false
|
||||
for attempt in {1..120}; do
|
||||
if curl -fsS http://8.211.154.134:18131/ | grep -q '想法不该停在对话里'; then canonical_ready=true; break; fi
|
||||
sleep 5
|
||||
done
|
||||
$canonical_ready || { echo 'Wiki landing and canonical route release is not ready'; exit 1; }
|
||||
REPO_ROOT=$(git rev-parse --show-toplevel)
|
||||
RESULT_DIR="$REPO_ROOT/artifacts/studio-acceptance"
|
||||
MODE=${1:-verify}
|
||||
|
||||
Reference in New Issue
Block a user