【发布时间】:2020-01-16 17:06:16
【问题描述】:
我想在使用 firebase emulators:start 命令时排除本地 firestore 并连接 prod firestore。
基本上,我只想为功能和托管运行模拟器,所以当我尝试firebase emulators:start --only functions,hosting
我收到以下错误:
i emulators: Starting emulators:
! Not starting the functions hosting emulator, make sure you have run firebase init.
+ All emulators started, it is now safe to connect.
然后退出shell。
有一种解决方法可以运行两个模拟器 firebase emulators:start --only functions 和 firebase emulators:start --only hosting,但为什么它不能在一个模拟器中运行?
P.S:我想使用emulator 方法而不是firebase serve 进行调试。
【问题讨论】:
标签: firebase google-cloud-firestore firebase-tools