app.yaml

Is it .yaml or .yml?

六月ゝ 毕业季﹏ 提交于 2019-11-27 19:44:37
问题 According to yaml.org, the official file extension is .yaml . Quote: Is there an official extension for YAML files? Please use ".yaml" when possible. However there seems to be a disagreement on the internet on which extension to use. If you look up examples on the web, many of them use the unsanctioned .yml extension. Searching Google returns nearly 3 times as many results for the shorter one. 49,100 15,400 So which am I supposed to use? The proper 4 letter extension suggested by the creator,

Deploying basic Angular 2 app to Google App Engine

为君一笑 提交于 2019-11-27 12:13:38
I can use Angular 2 to create basic front-end applications and can use python to create back-ends with endpoints on Google App engine. I can't however seem to figure out how to put the two together and deploy them with the cloud SDK. Here is a basic example where I can't even host a simple angular2 app with no back-end calls on GAE. I have taken the dist folder after building with angular2 CLI and tried to connect to it with the app.yaml file. It seems to work in the browser developer (dev_appserver.py app.yaml) although I get some 404 errors in SDK with the GET requests to do with my index

How do I setup routing for react in GAE? Directly routing to react-router-dom routes via URL fails in GAE on basic create-react-app?

对着背影说爱祢 提交于 2019-11-27 04:41:45
问题 ANSWER for now This was tough for me to get exactly right. Very little in the way of guidance via Google. I hope this helps others. As Dan Cornilescu pointed out, the handlers accept the first match. So we go from more specific to less specific. I've solved this by following the folder structure created by npm run build : 1. Handle sub-directories for js, css, and media. 2. Handle json and ico requests for manifest.json and fav.ico. 3. Route all other traffic to index.html. handlers: - url: