From 2100ca9218d3676165de0959adb8c26c44e95620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cu=CC=9Bo=CC=9Bng=20Nguye=CC=82=CC=83n?= Date: Sun, 16 May 2021 15:21:02 +0700 Subject: [PATCH] Add script to deploy firestore and storage rules --- synchronize_backend.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/synchronize_backend.sh b/synchronize_backend.sh index fa139ad8..1086eac6 100755 --- a/synchronize_backend.sh +++ b/synchronize_backend.sh @@ -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; \ No newline at end of file +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;