Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
Add script to deploy firestore and storage rules
Browse files Browse the repository at this point in the history
  • Loading branch information
cuong0993 committed May 16, 2021
1 parent 66ecb9e commit 2100ca9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synchronize_backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ cd storage; gsutil -m rsync -r -d ./ gs://$1.appspot.com;
cd ../functions/functions;
gcloud functions deploy OnUserSignUp --entry-point functions.OnUserSignUp --runtime java11 --trigger-event providers/firebase.auth/eventTypes/user.create --project=$1 --update-env-vars "GOOGLE_CLOUD_PROJECT=$1" --memory=256MB --timeout=540s;
gcloud functions deploy OnUserDeleted --entry-point functions.OnUserDeleted --runtime java11 --trigger-event providers/firebase.auth/eventTypes/user.delete --project=$1 --update-env-vars "GOOGLE_CLOUD_PROJECT=$1" --memory=256MB --timeout=540s;
gcloud functions deploy GetGameReward --entry-point functions.GetGameReward --runtime java11 --trigger-http --allow-unauthenticated --project=$1 --update-env-vars "GOOGLE_CLOUD_PROJECT=$1" --memory=256MB --timeout=540s;
gcloud functions deploy GetGameReward --entry-point functions.GetGameReward --runtime java11 --trigger-http --allow-unauthenticated --project=$1 --update-env-vars "GOOGLE_CLOUD_PROJECT=$1" --memory=256MB --timeout=540s;
cd ..;
firebase deploy --only firestore --project $1;
firebase deploy --only storage --project $1;

0 comments on commit 2100ca9

Please sign in to comment.