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)"

ああ、すごい! 実際、コンマで区切ってみましたが、「functions:」をグループごとに繰り返す必要があるという事実を見逃しました。

これを発見してとても幸せです。 参照していただきありがとうございます—次回は必ずヘルプコマンドを確認します!

こちらのドキュメント/例にも追加できると便利かもしれません: https

です。

image

このページは役に立ちましたか?
0 / 5 - 0 評価