[英]Can not display deployed cloud function in firebase console
I have try to deploy cloud function to firebase but i am confused between command prompt and firebase console->project->functions. 我尝试将云功能部署到firebase但我在命令提示符和firebase console-> project-> functions之间感到困惑。 Because in command prompt display deployed successfully but in function tab there is no any functions. 因为在命令提示符显示中成功部署但在功能选项卡中没有任何功能。
I have follow below steps for deploy process 我已按照以下步骤进行部署过程
After that i have run "firebase init functions" command and give me project list and i have select a project with enter.And answer to some question that is in image. 之后我运行了“firebase init functions”命令并给我项目列表,我选择了一个带有enter的项目。并回答了图像中的一些问题。
5.After that i have run "firebase deploy --only functions" command.and give me below result. 5.之后我运行了“firebase deploy --only functions”命令。并给我以下结果。
After that i have visit to https://console.firebase.google.com/ in check in selected project -> function but i got below screen. 之后我访问了https://console.firebase.google.com/ ,检查了所选项目 - >功能,但我在屏幕下方。
Firebase only deploys functions that are exported, so you have to make sure that the function you want to deploy is exported in your index.js
file: Firebase仅部署导出的函数,因此您必须确保要部署的函数在index.js
文件中导出:
exports.yourFunction = functions.https.onRequest((req, res) => {
// Your enter code here
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.