【发布时间】:2017-10-10 12:28:27
【问题描述】:
我在 nodejs 中创建了 firebase 函数并将代码部署在 firebase 上。 该功能是在创建新用户时发送电子邮件。 我现在丢失了代码。我们可以从 firebase 中提取代码吗?
【问题讨论】:
-
尝试在我拥有的类似 issue 上做我所做的事情
标签: node.js firebase google-cloud-functions firebase-console
我在 nodejs 中创建了 firebase 函数并将代码部署在 firebase 上。 该功能是在创建新用户时发送电子邮件。 我现在丢失了代码。我们可以从 firebase 中提取代码吗?
【问题讨论】:
标签: node.js firebase google-cloud-functions firebase-console
注意:以下过程可能适用于您的情况,也可能不适用。不要依赖它来代替将代码保存在适当的版本控制系统中。
您可以从 Cloud Console 中检索 Cloud Functions 的代码。
选择顶部的Source
将开始下载包含最新函数源的 zip 文件。
请注意,这些文件可能会定期被删除。在这种情况下,上述过程将无法恢复您的源代码。
【讨论】:
在左侧菜单的 Firebase 控制台中,选择“功能”。将鼠标悬停在您要查看的函数上,然后单击三个垂直点。选择详细使用情况统计。这会将您带到 Google Cloud 控制台。选择“Source”获取源代码。
【讨论】:
看起来上面给出的答案已经过时并且不再起作用了。这是在紧迫的期限内完成分配给您的任务的最新、最强大的 thalaiva 方式。
staging.<project-name>.appspot.com
firebase-functions-source文件。Firebase 函数的压缩文件夹将被下载
干杯!
【讨论】:
firebase-functions-source 文件?