简体   繁体   English

将 Firebase-functions-emulator 与远程 firebase 服务一起使用

[英]Use Firebase-functions-emulator with remote firebase services

Can I connect the firebase-functions-emulator with the remote authentication and firestore service?我可以将 firebase-functions-emulator 与远程身份验证和 firestore 服务连接起来吗? Currently it is connecting only to the other local emulators.目前它只连接到其他本地模拟器。 I don't want to setup my db locally.我不想在本地设置我的数据库。

It's not possible to have the local Cloud Functions emulator respond to (or "trigger" on) events in a production database.无法让本地 Cloud Functions 模拟器响应(或“触发”)生产数据库中的事件。 You have to deploy your functions in order for them to execute in response to change in the cloud-hosted database.您必须部署您的函数,以便它们响应云托管数据库中的变化而执行。 The local functions emulator only responds to changes in the locally emulated database.本地函数模拟器仅响应本地模拟数据库中的更改。 Refer the following to understand how to Connect your app to the Realtime Database Emulator请参阅以下内容以了解如何将您的应用连接到实时数据库模拟器

Check a similar example here.在此处查看类似的示例

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

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