当使用firebase emulators:start命令时,我希望排除本地的防火墙,并连接prod防火墙。
基本上,当我尝试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.然后它就会离开外壳。
运行两个仿真器firebase emulators:start --only functions和firebase emulators:start --only hosting有一个解决办法,但为什么不能在一个模拟器中工作呢?
P.S:我想使用emulator方法而不是firebase serve来调试。
发布于 2020-01-31 20:54:23
看来问题在于powershell本身。逗号是powershell中表示数组分隔符的特殊符号。解决方案是在参数周围添加引号。
# This WILL NOT work
firebase emulators:start --only functions,hosting
# This will work
firebase emulators:start --only "functions,hosting"发布于 2020-01-16 17:08:14
这似乎是一个错误,请提出问题上的GitHub回购。
https://stackoverflow.com/questions/59774625
复制相似问题