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

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

问题描述

我已经在nodejs中创建了firebase函数,并在firebase上部署了代码。
功能是在新用户创建时发送邮件。
我现在已经丢失了代码。我们可以从firebase中获取代码吗?

解决方案

下面的过程可能工作或者不适合你的情况。不要依赖它来代替将代码保存在适当的版本控制系统中。



您可以从云端控制台。


  1. 转至


  2. 在顶部选择来源


  3. 点击来源位置链接

具有最新源代码的zip文件将开始下载。



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


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 ?

解决方案

Note: the process below may work or not for your case. Don't rely on it as a replacement for keeping your code in a proper version control system.

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

  1. Go to this URL
  2. Select the project that the function is in
  3. Select a function from the list
  4. You will get to this page:

  5. Select the Source at the top

  6. Click the "Source location" link

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天全站免登陆