相关疑难解决方法(0)

在应用程序结构方面,Google App Engine应用程序中的默认服务/模块可以是非默认服务/模块的兄弟吗?

更新:这些天modules被称为services.

我想将项目的模块组织到各种子文件夹中,其中每个子文件夹包含与每个模块有关的代码.特别是,我希望包含默认模块的文件夹与其他模块处于同一级别(即它们都是兄弟姐妹).我按照模块文档中显示的图表:

图

但是,令我困惑的是语句" 重要:app.yaml文件必须位于应用程序的根目录中 ".这是否意味着默认模块(及其app.yaml)必须位于项目根目录中,因此是非默认模块的父项?

google-app-engine module

8
推荐指数
1
解决办法
2722
查看次数

如何在Google App Engine中为每个服务绑定一个域/子域?

我发现在GAE中如何将多个域映射到多个服务时遇到很多麻烦。这是配置:

  • Go API是一个应用程序,已在标准环境中部署在GAE中
  • 第二个应用程序是Angular应用程序,它也在标准环境中作为另一项服务部署在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)

google-app-engine google-cloud-platform

4
推荐指数
1
解决办法
1252
查看次数