android - 当我尝试上传新的时,我的 firebase 功能被删除了

标签 android node.js firebase google-cloud-functions firebase-cli

我想为推送通知创建一个函数,但是当我尝试上传新函数时,之前用于不同目的的函数被删除了。我不知道为什么目前我有 3 个功能。 This is the screenshot of my node js

最佳答案

默认情况下,这是使用 Firebase CLI 进行部署的方式。每次部署时,您部署的所有功能都会完全替换您之前部署的任何其他功能。

如果只想部署某些功能而不替换所有功能,则需要在命令行中指定 as described in the documentation :

When deploying functions, you can target specific ones:

firebase deploy --only functions:function1
firebase deploy --only functions:function1,functions:function2

关于android - 当我尝试上传新的时,我的 firebase 功能被删除了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49300880/

相关文章:

swift - 没有待激活的快照。 SDK 名称 : app_measurement

firebase - 抖动错误: type 'StreamBuilder<DocumentSnapshot>' is not a subtype of type 'String'

android - Chrome Android - 滚动时处理 CSS 和 JS

android - 修改 Button 时 onResume 出现 NullPointerException,为什么?

node.js - 使用非 http (coap) 的快速路由

javascript - 如何从nodejs服务器发送查询到开放数据服务器?

AngularJS + Firebase : Uncaught Document body has not initialized. 等待文档准备好后初始化 Firebase

c# - Xamarin Android 支持库 v4(不完整)?

java - 如何在android studio中的whatsapp上自动发送消息

performance - 与 Apache 相比,Node.js 的性能如何?