0

I have a conceptual question regarding App Engine. Let's say my code is in a Git repo and I want it to run on App Engine (GAE).

From what I can see in the tutorials, I clone my repo in the Cloud Shell, run the commands to create a new instance, and I get my app running in GAE with it's own subdomain. Any administration after this can be done via the GUI.

Is this correct?

After this, is there any way to automate that this GAE engine instance always update and run the latest code in master when I commit to the master branch (or any other branch)?

Can I chose the subdomain name I get? What if I want a production server with code in master branch, and a dev server with the code from the dev branch?

Thanks!

zundi
  • 2,361
  • 1
  • 28
  • 45

1 Answers1

1

Your understanding is correct.

An instance will only run the version of the code it corresponds to. But automated deployments (launching new instances with the newer code) are possible, for example by wrapping google app deploy commands inside a CI/CD solution triggered by commits to the respective branch. See, for example, Continuous integration/deployment/delivery on Google App Engine, too risky? Another option may be via the Admin API (I didn't try it).

You can always use a custom (sub)domain of your liking, see Mapping Custom Domains.

Yes, separate per-branch deployment environments are possible, see:

Dan Cornilescu
  • 39,470
  • 12
  • 57
  • 97