How to stop or disable Google App Engine production server?

后端 未结 4 2006
滥情空心
滥情空心 2021-02-02 13:03

I have uploaded google app java project to production google app engine (from this tutorial), but I can\'t found any information how to stop or disable the production app engine

4条回答
  •  灰色年华
    2021-02-02 13:46

    For me none of the other solutions were applicable as I was testing AppEngine on a project that already used Firestore, and disabling the app would disable it as well which was not an option.
    I contacted Google and this is the solution they gave me:

    You can overwrite the default version of your app by redeploying the app with an empty application and create an app.yaml that uses only static files:

    module: default
    runtime: python27
    api_version: '1.0'
    threadsafe: true
    handlers:
      - url: /
        static_files: index.html
        upload: index.html
    manual_scaling:
      instances: 1
    

    a dummy index.html like:

    CLOSED
    

    and deploy it using: gcloud app deploy app.yaml

    Then you can stop your app using gcloud app versions stop VERSION_ID

提交回复
热议问题