【问题标题】:How to use Firebase emulator to test Java cloud functions with Firestore trigger?如何使用 Firebase 模拟器通过 Firestore 触发器测试 Java 云功能?
【发布时间】:2020-10-30 21:33:44
【问题描述】:

我正在尝试将 Java11 运行时用于 Google 云/firebase 功能,该功能是最近发布的。我想在我的本地机器上测试 Firestore 触发器功能。互联网上的指南似乎正在使用命令 firebase functions:shell 本身启动所需的仿真过程。但是,我没有找到任何方法来为 firebase 函数指定 .jar 文件:shell 命令。或任何指定功能的方式。我知道它不会加载我的 Java http 函数,因为它显示了加载的函数,而 helloWorld 不是其中之一:

gintas-mac:functions gintas$ firebase functions:shell
⚠  Your requested "node" version "10" doesn't match your global version "8"
i  functions: Loaded functions: helloWorld
⚠  functions: The following emulators are not running, calls to these services will affect production: firestore, database, pubsub

【问题讨论】:

标签: java firebase google-cloud-firestore google-cloud-functions


【解决方案1】:

无法使用 Firebase CLI 测试用 Java 编写的函数。 Firebase 仅支持在 nodejs 上使用 firebase-functions 模块编写的函数。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-05-13
    • 2023-03-16
    • 2018-06-23
    • 2019-12-03
    • 2018-12-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多