I currently have an Google App Engine Flexible project with four services. And when I map my custom domain to my project using the documentation https://cloud.google.com/appengine/docs/standard/python/mapping-custom-domains, it automatically points to the default service which is not the frontend application. How do I map it to a different service.
相关问题
- java.lang.NullPointerException at java.io.PrintWri
- Why do Dataflow steps not start?
- __call__() missing 1 required positional argument:
- Upload file to Google Cloud Storage using AngularJ
- Where is the best place to put one-time and every-
相关文章
- Is there a size limit for HTTP response headers on
- How do I create a persistent volume claim with Rea
- appcfg.py command not found
- Google app engine datastore string encoding proble
- GKE does not scale to/from 0 when autoscaling enab
- Angular route not working when used with Google Ap
- Doctrine not finding data on Google App Engine?
- Can't push image to google container registry
The answer from @dan isn't up to date anymore:
The naming of the dispatch.yaml file changed from 'module' to 'service', like this:
You deploy the stand-alone-file via this command (it hasn't to be in a project folder):
Reference: https://cloud.google.com/appengine/docs/standard/python/config/dispatchref
You cannot map a certain (sub)domain to a certain service in the app-level custom domain mapping, mapping is done only at the app level (as a whole).
To direct a certain (sub)domain to a certain service inside your app you'll need to use a dispatch file, for example:
Side note: you may want to revisit the decision of handling the frontend in a non-default service: the frontend is IMHO best suited to handle any garbage request coming in (which would typically not match any routing rule and would thus be directed towards the default service). If your default service does something more sensitive than the frontend it might not like that spam coming in.