scripts/deploy/preflight-prod.sh
Metadata
- Purpose: Automation script used in local development, CI, or deployment flow.
- Domain:
scripts - Language:
bash - Bytes: 2400
- Lines: 68
- Content hash (short):
2caa5e93 - Source (start): scripts/deploy/preflight-prod.sh:1
- Source (end): scripts/deploy/preflight-prod.sh:68
Indexed Symbols
No indexed functions/methods detected in this file.
Markdown Headings (if applicable)
No markdown headings detected.
Source Preview
#!/usr/bin/env bash
set -euo pipefail
BASE_URL="${BASE_URL:-https://ops.anchor-msp.com}"
STATUS_API_URL="${STATUS_API_URL:-https://status.anchor-msp.com}"
ENGINE_ID="${ENGINE_ID:-anchor-msp}"
ENGINE_SKU="${ENGINE_SKU:-0.1.0.API.DK.20260305}"
WORKSPACE_ID="${ANCHOR_WORKSPACE_ID:-}"
OPERATOR_JWT="${ANCHOR_OPERATOR_JWT:-}"
STATUS_API_TOKEN="${STATUS_API_TOKEN:-}"
if [[ -z "$WORKSPACE_ID" ]]; then
echo "ANCHOR_WORKSPACE_ID is required"
exit 1
fi
if [[ -z "$OPERATOR_JWT" ]]; then
echo "ANCHOR_OPERATOR_JWT is required"
exit 1
fi
if [[ -z "$STATUS_API_TOKEN" ]]; then
echo "STATUS_API_TOKEN is required"
exit 1