简体   繁体   English

无法在firebase控制台中显示已部署的云功能

[英]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 我已按照以下步骤进行部署过程

  1. Download a sample function and place to c drive with folder name AddMessage. 下载示例函数并放置到具有文件夹名称AddMessage的c驱动器。
  2. Start command prompt and run "npm install -g firebase-tools"command. 启动命令提示符并运行“npm install -g firebase-tools”命令。
  3. After that i have run "firebase login" command and result is you have already logged in with email. 之后我运行了“firebase login”命令,结果是你已经用电子邮件登录了。
  4. 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.

相关问题 Firebase:云 function 已正确部署但未被触发 - Firebase: Cloud function deployed correctly but not being triggered Firebase 云功能:部署 onCreate function 未触发 - Firebase Cloud Functions: Deployed onCreate function not triggering 我无法实现在 firebase 控制台中创建主题的云函数 - I can not implement a Cloud Function that creates a topic in the firebase console 看不到已部署的 Firebase 功能 - Can not see the Firebase function deployed 云功能-无法查看将我的功能部署到Firebase控制台中 - Cloud functions - Cant see my functions deployed into firebase console 部署到 Firebase 云功能的 TypeORM + Express 无法连接到 Cloud SQL - TypeORM + Express deployed to firebase cloud function cannot connect to Cloud SQL Firebase功能显示已部署,但不会显示在Firebase控制台中 - Firebase function says deployed but won't show up in Firebase Console 如何从已部署的Firebase应用程序中获取云功能 - How can I GET from a Cloud Function from a Deployed Firebase App 如何使用部署在 firebase 中的函数连接到我的谷歌云 mysql 数据库? - how can I connect to my google cloud mysql database using a function deployed in firebase? 我无法从 Google Cloud Console(使用 Firebase)查看我的 Cloud Function 的源代码 - I can't view the source code of my Cloud Function from Google Cloud Console( Firebase using)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM