Firebase-tools: حدد مجموعات متعددة عند نشر الوظائف

تم إنشاؤها على ٥ ديسمبر ٢٠١٨  ·  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)"

آه عظيم! في الواقع ، حاولت فصل الفاصلة ، لكنني فاتني حقيقة أن "الوظائف:" يجب أن تتكرر مع كل مجموعة.

سعيد جدا لاكتشاف هذا. شكرًا للإشارة - في المرة القادمة سأحرص على التحقق من أمر المساعدة!

قد يكون من المفيد إضافته إلى الوثائق / المثال هنا أيضًا: https://firebase.google.com/docs/cli/#deploy_specific_functions

أنه.

image

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات