繁体   English   中英

如何使用 Firebase 模拟器通过 Firestore 触发器测试 Java 云功能?

[英]How to use Firebase emulator to test Java cloud functions with Firestore trigger?

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM