How to automatically delete old Google App Engine version instances?

后端 未结 6 1111
囚心锁ツ
囚心锁ツ 2021-02-12 10:57

I\'m experimenting with more cost effective ways to deploy my Rails apps, and went through the Ruby Starter Projects to get a feel for Google Cloud Platform.

It\'s al

6条回答
  •  野的像风
    2021-02-12 11:10

    The command below may work:

    gcloud app deploy app.yaml worker.yaml --promote --stop-previous-version
    

    see: https://cloud.google.com/sdk/gcloud/reference/app/deploy

    I cannot find any documents about the default values of promote and stop-previous-version. As far as I observed, promote is True and stop-previous-version is False though. I wrote both options for safety.

提交回复
热议问题