回滚到Firebase函数的旧版本(Google云函数) [英] Rolling back to an older version of a firebase function (google cloud function)

查看:73
本文介绍了回滚到Firebase函数的旧版本(Google云函数)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到一种简单的方法来回滚到我的Firebase函数(以前的版本)(Google Cloud函数),以防新版本的Firebase函数对部署的系统造成问题.

I am trying to find an easy way to roll back to a/the previous version of my firebase function(google cloud function), in case the new release of this firebase function creates a problem to the deployed system.

我部署功能的方式是通过firebase cli(firebase deploy --only功能)而不是gcloud cli.

The way I deploy the functions is via firebase cli (firebase deploy --only functions) and not gcloud cli.

是否有一种简单的方法可以回滚到该功能的先前版本?

Is there an easy way to roll back to the previous version of the function?

推荐答案

当前没有回滚功能.您将必须使用要替换的源代码再次部署该函数.为了使它们更容易实现,开发人员通常在部署后将其代码标记在源代码管理中,以便轻松签出特定版本的代码以供日后回滚.

There is currently no rollback feature. You will have to deploy the function again using the source code that you want to have in its place. To make this easier on themselves, developers typically tag their code in source control after a deploy, so that it's easy to check out a specific version of the code to roll back later.

这篇关于回滚到Firebase函数的旧版本(Google云函数)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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