I am running a Node.js app on Google App Engine, using the following command to deploy my code:
gcloud app deploy --stop-previous-version
My de
Google may have updated their documentation cited in @IAmKale's answer
Note that if the version is running on an instance of an auto-scaled service, using
--stop-previous-version
will not work and the previous version will continue to run because auto-scaled service instances are always running.
Seems like that flag only works with manually scaled services.