Skip to content

Commit

Permalink
Fix firebase setup during setup and deploy steps
Browse files Browse the repository at this point in the history
  • Loading branch information
evamaxfield committed Dec 2, 2023
1 parent 99c5e3a commit 8f72ae7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cdp_backend/infrastructure/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,18 @@ enable-services:
setup project region=default_region:
just enable-services
gcloud app create --region={{replace(region, "us-central1", "us-central")}}
gcloud firestore databases create --location={{replace(region, "us-central1", "nam5")}}
gcloud alpha firestore databases update --type=firestore-native
firebase projects:addfirebase {{project}}
firebase use --add {{project}}
@ echo "----------------------------------------------------------------------------"
@ echo "Follow the link to setup Firebase Storage."
@ echo "https://console.firebase.google.com/u/1/project/{{project}}/storage"
@ echo "Default settings ('start in Production mode' and region) are fine."
@ echo "----------------------------------------------------------------------------"
@ echo "----------------------------------------------------------------------------"
@ echo "Sleeping for thirty seconds while resources set up"
@ echo "----------------------------------------------------------------------------"
sleep 30

# deploy the CDP specific firestore and storage requirements
deploy project cookiecutter_yaml=default_cookiecutter_yaml:
Expand Down

0 comments on commit 8f72ae7

Please sign in to comment.