Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Script not updating after saving changes and publishing

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)

like image 591
tw1stud Avatar asked Aug 30 '13 23:08

tw1stud


2 Answers

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.

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.

like image 67
Mogsdad Avatar answered Nov 23 '22 04:11

Mogsdad


That is not the problem. There appears to be a bug which does not update the published script. I needed to delete the script completely, save it and add back my saved code. I kept publishing, getting the "exec" version and it never used the new code until I did this.

like image 38
lfeder Avatar answered Nov 23 '22 04:11

lfeder