更新:这些天modules被称为services.
我想将项目的模块组织到各种子文件夹中,其中每个子文件夹包含与每个模块有关的代码.特别是,我希望包含默认模块的文件夹与其他模块处于同一级别(即它们都是兄弟姐妹).我按照模块文档中显示的图表:
但是,令我困惑的是语句" 重要:app.yaml文件必须位于应用程序的根目录中 ".这是否意味着默认模块(及其app.yaml)必须位于项目根目录中,因此是非默认模块的父项?
我发现在GAE中如何将多个域映射到多个服务时遇到很多麻烦。这是配置:
这是app.yaml文件:
转到应用程序app.yaml
runtime: go
api_version: go1.9
handlers:
- url: /.*
script: _go_app
Run Code Online (Sandbox Code Playgroud)
Angular应用程序app.yaml
service: stage
runtime: python27
api_version: 1
threadsafe: true
skip_files:
- ^(?!dist) # Skip any files not in the dist folder
handlers:
# Routing for bundles to serve directly
- url: /((?:inline|main|polyfills|styles|vendor)\.[a-z0-9]+\.bundle\.js)
secure: always
redirect_http_response_code: 301
static_files: dist/\1
upload: dist/.*
# Routing for a prod styles.bundle.css to serve directly
- url: /(styles\.[a-z0-9]+\.bundle\.css)
secure: always
redirect_http_response_code: 301
static_files: dist/\1
upload: dist/.*
# Routing for typedoc, …Run Code Online (Sandbox Code Playgroud)