为Firebase部署单独的云端功能 [英] Deploy individual Cloud Function for Firebase
本文介绍了为Firebase部署单独的云端功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望能够为Firebase部署一个单独的云端功能,因此我不必每次都部署我的整个项目。
通过CLI的选项,但如果有一个休息的API或一些其他接口,谷歌或Firebase公开,以使这更容易,这将是伟大的。
解决方案 CLI提供了部署单个函数的功能:$ b $ pre $
firebase deploy --only functions:myFunction
或函数列表:
firebase deploy --only functions:myFuncA,functions:myFuncB,functions:myFuncC
更多详情:
firebase deploy --help
I'd like to be able to deploy an individual Cloud Function for Firebase so I don't have to deploy my entire project every time.
There isn't an option through the CLI, but if there's a rest API or some other interface that Google or Firebase exposes to make this easier, that would be great.
解决方案
The CLI provides the capability to deploy a single function:
firebase deploy --only functions:myFunction
or list of functions:
firebase deploy --only functions:myFuncA,functions:myFuncB,functions:myFuncC
For more details:
firebase deploy --help
这篇关于为Firebase部署单独的云端功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文