I can't update script on Google App Script

走远了吗. 提交于 2020-01-11 06:55:29

问题


I use Google App in my company, and I often have a prob when I update my script.

When I Update my script , my Webpage on Google sites is not updated , and for long time. I must create a new script when I update my script.

Can I resolve this problem ?

regards


回答1:


There are two ways to publish your code:

A) Either by deploying a new version, which is done as follows:

  1. File -> Manage Versions
  2. Add a new version -> Close dialog
  3. Publish -> Deploy as web app
  4. Select the version added -> Update

B) Or by always using your latest code

  1. Publish -> Deploy as web app
  2. Under the web app URL, click on the latest code button.
  3. This way, any change done and saved will automatically be updated upon a refresh



回答2:


Follow the instructions in the documentation. You need to first save a new version in the versions dialog. Then you need to re-publish it using the new version number.



来源:https://stackoverflow.com/questions/21453265/i-cant-update-script-on-google-app-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!