In addition to wat Jason said, you might also want to take at the
"includes" directive to avoid repeating yourself:
https://cloud.google.com/appengine/docs/standard/python/config/appref
So you could do something like:
- have a common "services.yaml" somewhere
- in each of the dev / stage / prod yaml just put the information specific
for that env and include the common services yaml
Sidenote: we have a small helper script for our GAE projects so that we can
do some more processing around running / deploying and we generate our
app.yaml's dynamically:
def _buildAppYamls(for_deployment):
app_yaml_templates = _findInAppengineModules('app-template.yaml')
for template in app_yaml_templates:
content = _load(template)
d = os.path.dirname(template)
module = os.path.basename(d)
if module != 'main':
module_tag = 'service' if for_deployment else 'module'
content = '%s: %s\n%s' % (module_tag, module, content)
if not for_production:
content = 'version: local-development\n' + content
with open(os.path.join(d, 'app.yaml'), 'w') as f:
f.write(content)
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/d92e5d69-5318-4efe-a1c3-8435e2efdb73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.