How to stop or disable the Google App Engine application development server?

I downloaded the google app java project to create a Google engine (from this tutorial ), but I can not find any information on how to stop or disable the production application mechanism.

From the Google Developer Console, I can close the instance through the Compute -> Instances menu, but if I open or get the application URL in the browser, the application instance will start again.

So, how to completely stop or shut down the Google App Engine production server?

+5
source share
3 answers

Change your code so that it doesn’t show pages and update the server on the network, or use the administrator console and change the security settings so that no one can see it.

i.e. come here .. https://appengine.google.com/ , if you have a Google application account, you should see the section “Disable or uninstall the application”.

+5
source

At the end of the game, the tutorial here currently offers to delete the project, but I wanted to keep the project identifier, so the proposed option is not an ideal solution for me.

After spending a good 15 minutes around the site, I found 2 ways to stop the application. Hope this will be useful to others until the user interface changes.

Method 1: Disable the application

Go to App Engine, settings, click Disable application .

Screenshot with App Engine Settings

Method 2: Stop Instance

Go to App Engine, Versions, and then press STOP .

Screenshot from App Engine Version

+16
source

For me, none of the other solutions is applicable, since I tested AppEngine in a project that already used Firestore, and disabling the application will also disable it, which is not an option.
I contacted Google and this is the solution they gave me:

You can overwrite the default version of your application by redistributing the application using an empty application and creating 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 

dummy index.html like:

 <title>CLOSED</title> 

and deploy it using: gcloud app deploy app.yaml

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

0
source

Source: https://habr.com/ru/post/1207929/


All Articles