《Google Apps Script 版本部署》更改 - 多个活动部署 - 如何更新活动部署? [英] "Google Apps Script version deployment" change - More than one active deployment - how to update an active deployment?

查看:42
本文介绍了《Google Apps Script 版本部署》更改 - 多个活动部署 - 如何更新活动部署?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近注意到,当我部署新版本的网络应用程序时,它会为我提供一个新的 URL,而不是使用旧的 URL.问题是我使用 web 应用程序作为 webhook,这让我每次进行一些更改时都替换 webhook URL 很烦人.此外,当我部署新版本时,旧版本不会自动存档.是新政策吗?有没有办法恢复这个设置?注意:我使用的是新编辑器.但我发现旧编辑器也在执行同​​样的问题.

I recently noticed that when I deploy a new version of web app, it gives me a new URL instead of using the old one. The problem is I use the web app as webhook, which is so annoying for me to replace the webhook URL every time I make some changes. Also, the old version doesn't get archived automatically when I deploy a new version. Is it a new policy? Is there any way to revert this setting? Note: I'm using the new editor. But I find the old editor is also performing the same issue.

推荐答案

如果您想保留相同的 Web 应用程序 URL 或相同的项目 ID(如果您将脚本作为库共享),请使用管理部署";新代码编辑器中的选项.

If you want to keep the same web app URL, or the same project ID (if you shared your script as a library), use the "Manage deployments" option in the new code editor.

  • 点击管理部署"
  • 选择您现有的部署
  • 点击编辑/铅笔按钮
  • 点击版本下拉菜单
  • 点击新版本";在下拉列表中
  • 点击部署"按钮

不要点击新部署"菜单项.

Don't click on the "New deployment" menu entry.

这篇关于《Google Apps Script 版本部署》更改 - 多个活动部署 - 如何更新活动部署?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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