问题
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:
- File -> Manage Versions
- Add a new version -> Close dialog
- Publish -> Deploy as web app
- Select the version added -> Update
B) Or by always using your latest code
- Publish -> Deploy as web app
- Under the web app URL, click on the latest code button.
- 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