From 9d8a2da5e900851f58454f3acc3cb8b4a21fd9b1 Mon Sep 17 00:00:00 2001 From: Pritimay Sarkar Date: Fri, 8 Dec 2023 21:43:32 +0530 Subject: [PATCH] add function deploys --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c60c749..d61e94d 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,20 @@ Repo for all data related work. https://asia-south1-hpos-af3cc.cloudfunctions.net/registerUser +### gcloud set project + + gcloud config set project hpos-qa + ### deploy specific function - firebase deploy --only functions:consolidation \ No newline at end of file + firebase deploy --only functions:consolidation + +### deploy function with gcloud + + gcloud functions deploy my_function --runtime=python311 --region=asia-south1 --trigger-http --allow-unauthenticated + + gcloud functions deploy curvefit --runtime=python311 --region=asia-south1 --trigger-http --memory=512MB + +### function log + + gcloud functions logs read curvefit --region=asia-south1