【发布时间】:2019-11-13 15:16:51
【问题描述】:
我刚刚按照here 的说明设置了模拟器:
Dan$ firebase emulators:start --only functions
Starting emulators: ["functions"]
✔ functions: Emulator started at http://localhost:5001
i functions: Watching "/Users/danfein/Desktop/reviews/backend/functions" for Cloud Functions...
我知道在 :5001 有东西在运行。我的本地数据库环境未在本地运行(据我了解,Firebase 不支持此功能),因此由于我的连接已连接到网络,因此我不明白如何触发 :5001。
如何使用我正在运行的 React 实例(如果相关,在 :3000 上运行)触发当前存在于我的函数文件夹中的云函数之一。
这些功能当前正在运行并在云中适当地触发。
【问题讨论】:
标签: firebase google-cloud-firestore google-cloud-functions firebase-cli