Firebase-tools: 部署功能时指定多个组

创建于 2018-12-05  ·  5评论  ·  资料来源: firebase/firebase-tools

现在,您可以通过类似以下的组来部署特定功能
deploy --only functions:groupA (有效)

能够指定多个组似乎很自然,例如:
deploy --only functions:groupA groupC (无效)

作为一项功能请求,在部署功能时支持指定多个组的功能将不胜感激,并且会带来很大帮助。

question

最有用的评论

@rilian是正确的。

firebase help deploy命令:

--only <targets> only deploy to specified, comma-separated targets (e.g. "hosting,storage"). For functions, can specify filters with colons to scope function deploys to only those functions (e.g. "--only functions:func1,functions:func2"). When filtering based on export groups (the exported module object keys), use dots to specify group names (e.g. "--only functions:group1.subgroup1,functions:group2)"

所有5条评论

可能您应该使用deploy --only functions:groupA,functions:groupC

@rilian是正确的。

firebase help deploy命令:

--only <targets> only deploy to specified, comma-separated targets (e.g. "hosting,storage"). For functions, can specify filters with colons to scope function deploys to only those functions (e.g. "--only functions:func1,functions:func2"). When filtering based on export groups (the exported module object keys), use dots to specify group names (e.g. "--only functions:group1.subgroup1,functions:group2)"

啊,太好了! 实际上,我尝试用逗号分隔,但错过了必须对每个组重复使用“功能:”这一事实。

很高兴发现这一点。 感谢您的参考-下次我一定会检查help命令!

也可以将其添加到此处的文档/示例中,可能会有帮助: https :

这是。

image

此页面是否有帮助?
0 / 5 - 0 等级