保存更改并发布后,Google App脚本未更新 [英] Google App Script not updating after saving changes and publishing

查看:91
本文介绍了保存更改并发布后,Google App脚本未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个奇怪的问题,我创建了一个示例Google应用程序脚本,然后将其发布为Web应用程序.发布的URL为-XXXXX格式,尽管我对该脚本进行了一些更改并将其重新部署为Web应用程序,但确实向我显示了当前已部署的Web应用程序URl,而最新代码"显示的URL为YYYYY格式.虽然我确实知道URL-YYYY是我更新的Google应用程序脚本,但我不知道这是否是一个错误?或者如果这是预期的(我在这里还缺少其他东西吗?)

I came across a weird issue, I created a sample google app script and then published it as a web application. The URL that was published was of -XXXXX format, while I made some changes to the script and re-deployed it as a web app, it did show me the current deployed web app URl, while the 'latest code' showed a URL of YYYYY format. While I do understand that URL-YYYY is my updated google app script, I fail to understand if this is a bug? Or if this is expected (Am I missing something else here)

推荐答案

最新代码" URL是仅供开发人员使用的地址,带有唯一的ID,后跟/dev.只有脚本的所有者才能访问它,它会始终显示当前代码的结果.

The "latest code" URL is a developers-only address, with a unique ID followed by /dev. Only the owner of the script can access this, and it will always show the results of the current code.

已发布的应用程序具有一个具有不同唯一ID的URL,后跟/exec.要显示更新代码的结果,作者必须首先保存一个新版本,然后发布该版本.

The published application has a URL with a different unique ID followed by /exec. To show results of updated code, the author must first save a new version, then publish that version.

这篇关于保存更改并发布后,Google App脚本未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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