从我之前部署的 firebase 控制台获取代码 [英] Get code from firebase console which I deployed earlier

查看:24
本文介绍了从我之前部署的 firebase 控制台获取代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 nodejs 中创建了 firebase 函数并将代码部署在 firebase 上.该功能是在创建新用户时发送电子邮件.我现在丢失了代码.我们可以从 firebase 中提取该代码吗?

I had created firebase functions in nodejs and deployed the code on firebase. The function was to send an email when the new user is created. I have lost the code now. Can we pull that code from firebase ?

推荐答案

注意:以下过程可能适用于您的情况,也可能不适用于您的情况.不要依赖它来替代将代码保存在适当的版本控制系统中.

您可以从 Cloud Console 检索 Cloud Functions 的代码.

You can retrieve the code for your Cloud Functions from the Cloud Console.

  1. 转到

选择顶部的Source

带有最新函数源的 zip 文件将开始下载.

A zip file with the latest source of your function will start to download.

请注意,这些文件可能会定期被删除.在这种情况下,上述过程将无法恢复您的源代码.

Note that these files may periodically get deleted. In that case, the above process will not work to recover your source code.

这篇关于从我之前部署的 firebase 控制台获取代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆