Skip to content

How to deploy GAE APPIDEN

Michael-X-Net edited this page Feb 3, 2023 · 1 revision

**The simplified version requires a certain spirit of exploration to understand. ** **Please be sure to change the configuration according to your own needs! **

    1. Open permissions. Open the permission of cloud build, and change "App Engine" to ENABLED

https://console.cloud.google.com/cloud-build/settings/service-account

    1. Download gcloud sdk and install it yourself. Of course, there is an uncompressed version, you need to configure environment variables, and do it yourself.

Windows: https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe

Other:: https://cloud.google.com/sdk/docs#windows

    1. Initialization

Open the command prompt CMD, execute gcloud init, and then you will be asked to log in and enter a lot of things, including project name, default area, user experience improvement plan... . The region defaults to 7 (us-central1 is cheap). Of course, you can also try 47 (Hong Kong), which has no effect. Everything is up to you, it's OK to figure it out.

    1. Start uploading

Go back to the command prompt, type gcloud app deploy, hit a space, and drag in the yaml file you just created. Look, is the file name and directory included?

Warning: Try not to have spaces in directories. If it appears, please consciously put quotation marks around the file name with the directory

Then, it will be verified online, and it will ask to confirm the upload, enter Y, and press Enter.

If you are worried that no one will be there when confirming, then enter Y in advance and press Enter. It may not be visible when entering, but it will appear when asked.

Wait, wait, wait a little while, it's done!

The deployment part looks like this:


Services to deploy:
descriptor: [D:\Downloads\XX-Net\code\default\gae_proxy\server\gae\app.yaml]
source: [D:\Downloads\XX-Net\code\default\gae_proxy\server\gae]
target project: <project name>
target service: [default]
target version: [year, month, day, t hour, minute, second]
target url: [https://<project name>.appspot.com]


Do you want to continue (Y/n)? Y

Beginning deployment of service [default]...
#=================================================== ============#
#= Uploading 4 files to Google Cloud Storage =#
#=================================================== ============#
File upload done.
Updating service [default]...done.
Setting traffic split for service [default]...done.
Deployed service [default] to [https://project name.appspot.com]

You can stream logs from the command line by running:
   $ gcloud app logs tail -s default

To view your application in the web browser run:
   $ gcloud app browse

**You're done! **

Clone this wiki locally