Configuring different versions of the same service differently in GAE Standard
I deploy multiple versions of the same service and want them to be configured differently. For example, the test
version of a service should run on lower-spec instances (& no idle instances) than the prod
version of the same service.
Since both deployments share the same appengine-web.xml
, how do I maintain & use different versions of this configuration file?
On an earlier project I had resorted to having separate appengine-web.xml.test
and appengine-web.xml.prod
versions in Git (appengine-web.xml
itself was .gitignore
-d). Then I wrote a simple build program which would overwrite appengine-web.xml
with the appropriate version, then run the build and deployment commands. This was using the AppEngine SDK.
On my current project I am using the GCloud SDK. Is a better/simpler solution possible?