diff --git a/apps/relay/scripts/deploy.sh b/apps/relay/scripts/deploy.sh index 483f39921ad..35896f2ecc1 100755 --- a/apps/relay/scripts/deploy.sh +++ b/apps/relay/scripts/deploy.sh @@ -2,19 +2,12 @@ set -euo pipefail APP=superset-relay -REGIONS=(sjc) +REGIONS=(sjc iad fra nrt sin gru) COUNT=${#REGIONS[@]} REGION_LIST=$(IFS=, ; echo "${REGIONS[*]}") cd "$(git rev-parse --show-toplevel)" -echo "==> fly deploy" -fly deploy \ - --config apps/relay/fly.toml \ - --dockerfile apps/relay/Dockerfile \ - --app "$APP" \ - . - echo "==> fly scale count: $COUNT machines, 1 per region across $REGION_LIST" fly scale count "app=$COUNT" \ --region "$REGION_LIST" \ @@ -22,6 +15,14 @@ fly scale count "app=$COUNT" \ --app "$APP" \ --yes +echo "==> fly deploy (rolling)" +fly deploy \ + --config apps/relay/fly.toml \ + --dockerfile apps/relay/Dockerfile \ + --app "$APP" \ + --strategy rolling \ + . + echo "==> Status" fly status --app "$APP"