More than one active deployment - how to update an active deployment?

768 views
Skip to first unread message

Stephen Hind

unread,
Mar 17, 2021, 8:37:53 AM3/17/21
to Google Apps Script Community
We've just discovered that the new "more than one active deployment" has  hit our Apps Script and this is causing a new issue.  There is no longer a way to deploy updated code to existing deployment as every new deployment now creates a new URL.

Does anyone know how to deploy new code without the URL changing as it no longer appears to be possible.  We have lots of customers who we update scripts for any they don't want to have to use a new URL every time we make a change in their code for them.  We tried using the edit icon and then deploy but that does not deploy updated code and still uses the code associated with that version.

March 15, 2021

The following updates have been made to deployments in the new editor:

  • You can now have more than one active deployment.
  • You can now change the version associated with an active deployment.

To learn more, see Create and manage deployments.

Romain Vialard

unread,
Mar 17, 2021, 9:22:38 AM3/17/21
to Google Apps Script Community
Now, if you want to keep the same deployment ID (ie: the same url if deployed as a web app, or same ID if you shared your script as a library), don't click on the "New deployment" menu entry.
Instead:
  1. click on "Manage deployments", 
  2. select your existing deployment,
  3. click on the edit / pencil button,
  4. click on the Version dropdown,
  5. click on "New version" in the dropdown,
  6. click on the "Deploy" button

Faustino Rodriguez

unread,
Mar 18, 2021, 10:25:22 AM3/18/21
to Google Apps Script Community
I still don't see the "edit / pencil button" option

Romain Vialard

unread,
Mar 18, 2021, 10:36:31 AM3/18/21
to Google Apps Script Community
Should be fully rolled out by the end of the week.

Faustino Rodriguez

unread,
Mar 18, 2021, 10:44:47 AM3/18/21
to Google Apps Script Community
Thanks Romain 
So I better wait before doing any updates, just in case

Reply all
Reply to author
Forward
0 new messages