google-cloud-functions

Reading .cer files from jar file failing

丶灬走出姿态 提交于 2020-11-29 10:13:53
问题 I was trying to install client SSl cert at runtime. The certs are already packed with jar and is available in the below location While trying to read all available .cer files from the above mentioned path using below code ,it got failed String rootPath = this.getClass().getClassLoader().getResource("certs/"+activeProfile+"/").getPath(); File folder = new File(rootPath); File[] listOfFiles = folder.listFiles(); while debugging I am getting "rootPath" as "file:/workspace/mnb-123-no-data-flow

Is there a variable for accessing the version number for a given deployed cloud function

笑着哭i 提交于 2020-11-29 09:14:13
问题 GCP displays the version number of a deployed cloud function in the console. At the moment there isn't a system environment variable which contains information about the deployment - there is no version, nor deployment date. Given that version updates take considerable time to update (30 seconds +) and propagate, such version information would be useful to wield. 回答1: The recently-released nodejs10 runtime environment now includes an officially documented environment variable K_REVISION that

Is there a variable for accessing the version number for a given deployed cloud function

走远了吗. 提交于 2020-11-29 09:07:13
问题 GCP displays the version number of a deployed cloud function in the console. At the moment there isn't a system environment variable which contains information about the deployment - there is no version, nor deployment date. Given that version updates take considerable time to update (30 seconds +) and propagate, such version information would be useful to wield. 回答1: The recently-released nodejs10 runtime environment now includes an officially documented environment variable K_REVISION that

firebase_tools not found when trying to remove firestore collection from cloud functions

僤鯓⒐⒋嵵緔 提交于 2020-11-28 18:20:40
问题 I am trying to remove a collection using callable firebase function. I took a sample code from here. The sample code has a "firebase_tools" element. return firebase_tools.firestore .delete(path, { project: process.env.GCLOUD_PROJECT, recursive: true, yes: true, token: functions.config().fb.token }) Which apparently is not part of firebase-function I am getting following error in function logs: Unhandled error ReferenceError: firebase_tools is not defined The document also mentions that: You

firebase_tools not found when trying to remove firestore collection from cloud functions

*爱你&永不变心* 提交于 2020-11-28 18:10:30
问题 I am trying to remove a collection using callable firebase function. I took a sample code from here. The sample code has a "firebase_tools" element. return firebase_tools.firestore .delete(path, { project: process.env.GCLOUD_PROJECT, recursive: true, yes: true, token: functions.config().fb.token }) Which apparently is not part of firebase-function I am getting following error in function logs: Unhandled error ReferenceError: firebase_tools is not defined The document also mentions that: You

Can I run Firebase Storage cloud functions locally?

ぃ、小莉子 提交于 2020-11-28 08:09:23
问题 From Firebase DOCS: Run functions locally The Firebase CLI includes a Cloud Functions emulator which can emulate the following function types: HTTPS functions Callable functions Cloud Firestore functions You can run functions locally to test them before deploying to production. QUESTION Is there a way to run cloud functions for Firebase Storage (ex: triggered by file upload) locally or do I need to actually deploy them for testing? 回答1: firebaser here The documentation you found is up to date

Can I run Firebase Storage cloud functions locally?

隐身守侯 提交于 2020-11-28 08:09:15
问题 From Firebase DOCS: Run functions locally The Firebase CLI includes a Cloud Functions emulator which can emulate the following function types: HTTPS functions Callable functions Cloud Firestore functions You can run functions locally to test them before deploying to production. QUESTION Is there a way to run cloud functions for Firebase Storage (ex: triggered by file upload) locally or do I need to actually deploy them for testing? 回答1: firebaser here The documentation you found is up to date

Can I run Firebase Storage cloud functions locally?

别等时光非礼了梦想. 提交于 2020-11-28 08:09:01
问题 From Firebase DOCS: Run functions locally The Firebase CLI includes a Cloud Functions emulator which can emulate the following function types: HTTPS functions Callable functions Cloud Firestore functions You can run functions locally to test them before deploying to production. QUESTION Is there a way to run cloud functions for Firebase Storage (ex: triggered by file upload) locally or do I need to actually deploy them for testing? 回答1: firebaser here The documentation you found is up to date

Can I run Firebase Storage cloud functions locally?

房东的猫 提交于 2020-11-28 08:08:16
问题 From Firebase DOCS: Run functions locally The Firebase CLI includes a Cloud Functions emulator which can emulate the following function types: HTTPS functions Callable functions Cloud Firestore functions You can run functions locally to test them before deploying to production. QUESTION Is there a way to run cloud functions for Firebase Storage (ex: triggered by file upload) locally or do I need to actually deploy them for testing? 回答1: firebaser here The documentation you found is up to date

Can I run Firebase Storage cloud functions locally?

假如想象 提交于 2020-11-28 08:04:44
问题 From Firebase DOCS: Run functions locally The Firebase CLI includes a Cloud Functions emulator which can emulate the following function types: HTTPS functions Callable functions Cloud Firestore functions You can run functions locally to test them before deploying to production. QUESTION Is there a way to run cloud functions for Firebase Storage (ex: triggered by file upload) locally or do I need to actually deploy them for testing? 回答1: firebaser here The documentation you found is up to date