How to stop or disable Google App Engine production server?

后端 未结 4 1994
滥情空心
滥情空心 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:27

    Late to the game here, the tutorial currently suggests deleting the project, but I wanted to keep the project ID so the suggested option isn't the ideal solution for me.

    After spending a good 15 min around the site I've found 2 ways to stop the application. Hope this will be of some help to others until the UI changes again.

    Method 1: Disable Application

    Go into App Engine, Settings, click on Disable application.

    Method 2: Stop Instance

    Go into App Engine, Versions, and then click on STOP.

    0 讨论(0)
  • 2021-02-02 13:36

    Change you code to not serve pages and update the server online, or use the admin console and change the security settings so no one can see it.

    i.e. go here.. https://appengine.google.com/ if you have a google app account then you should see that there's a "Disable or Delete Application" section.

    0 讨论(0)
  • 2021-02-02 13:39

    Go into App Engine > Instances
    Select all the instances you want to delete
    Click on delete

    0 讨论(0)
  • 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:

    <title>CLOSED</title>
    

    and deploy it using: gcloud app deploy app.yaml

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

    0 讨论(0)
提交回复
热议问题