How to stop or disable Google App Engine productio

2019-04-21 04:07发布

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.

From google developer console, I can shutdown the instance via menu Compute -> Instances, but if I open or access the app's url in the browser, the app instance will start running again.

So how to completely stop or disable Google App Engine production server?

4条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-04-21 04:43

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

enter image description here

查看更多
干净又极端
3楼-- · 2019-04-21 04:50

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.

查看更多
Bombasti
4楼-- · 2019-04-21 04:58

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.

Screenshot of App Engine, Settings

Method 2: Stop Instance

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

Screenshot of App Engine, Versions

查看更多
小情绪 Triste *
5楼-- · 2019-04-21 04:58

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

查看更多
登录 后发表回答