Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GCP Point Custom Domain to Specific App Engine Service

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.

like image 572
Nicky Feller Avatar asked Nov 07 '17 18:11

Nicky Feller


1 Answers

The answer from @dan isn't up to date anymore:

The naming of the dispatch.yaml file changed from 'module' to 'service', like this:

dispatch:
   - url: "sub1.yourdomain.com/*"
     service: web-app

You deploy the stand-alone-file via this command (it hasn't to be in a project folder):

gcloud app deploy dispatch.yaml

Reference: https://cloud.google.com/appengine/docs/standard/python/config/dispatchref

like image 196
Marco Weber Avatar answered Nov 13 '22 03:11

Marco Weber