Deploy B2
Path:
codemode-gateway/scripts/deploy-b2.shRelative: scripts/deploy-b2.shSubproject: codemode-gatewayCategory: codemode-gatewayLines: 46Bytes: 1,776Imports: 0Exports: 0
Content Preview
- #!/usr/bin/env bash
- # B2 deploy sequence for codemode-gateway.
- # Authorized reversible versioned Worker update (per dispatch B2 instructions).
- # Never prints any token value.
- set -euo pipefail
- PROJECT_DIR="/home/mikes/leverage-loops-projects/codemode-gateway"
- ENV_FILE="/home/mikes/.env"
- # shellcheck disable=SC1090
- set -a; . "$ENV_FILE"; set +a
- : "${CF_WORKERS_DEPLOY_TOKEN:?CF_WORKERS_DEPLOY_TOKEN missing from $ENV_FILE}"
- : "${CLOUDFLARE_ACCOUNT_ID:?CLOUDFLARE_ACCOUNT_ID missing from $ENV_FILE