Skip to content

Commit

Permalink
create-gcloud-project: add retry loop around firestore native mode up…
Browse files Browse the repository at this point in the history
…date
  • Loading branch information
rlane committed Oct 15, 2023
1 parent c3736ee commit fe1b204
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/create-gcloud-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ while ! gcloud --project $PROJECT_ID artifacts repositories create services --re
done

gcloud --project $PROJECT_ID app create --region=$REGION
gcloud --project $PROJECT_ID firestore databases update --type=firestore-native
while ! gcloud --project $PROJECT_ID firestore databases update --type=firestore-native; do
sleep 10
done

(cd firebase && eval "$(fnm env)" && fnm use && npx firebase --project $PROJECT_ID projects:addfirebase $PROJECT_ID)

Expand Down

0 comments on commit fe1b204

Please sign in to comment.