Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions apps/relay/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,27 @@
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" \
--max-per-region 1 \
--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"

Expand Down
Loading