我想为GAE(PHP运行时)创建非常标准设置:2个模块将特定的URL(路线):谷歌应用程序引擎 - 无法找到调度配置
- 模块的API,用于REST API
- 模块应用的网络基础应用
我创建4 .yaml配置文件:
的app.yaml
application: ABC
version: 1
runtime: php55
api_version: 1
threadsafe: yes
automatic_scaling:
max_idle_instances: 20
handlers:
- url: /.*
script: api/web/index.php
dispatch.yaml
application: ABC
dispatch:
- url: "*/app/*"
module: web-based
- url: "*/*"
module: default
web_based.yaml
application: ABC
module: web-based
version: 1
runtime: php55
api_version: 1
threadsafe: yes
automatic_scaling:
min_idle_instances: 2
max_pending_latency: 1s
handlers:
- url: /(.*\.(gif|png|jpg|css|js|otf))
static_files: /\1
upload: /(.*\.(gif|png|jpg|js|css|otf))
api.yaml
application: ABC
module: default
version: 1
runtime: php55
api_version: 1
threadsafe: yes
manual_scaling:
instances: 1
handlers:
- url: /(.*\.(gif|png|jpg|css|js|otf))
static_files: web/\1
upload: web/(.*\.(gif|png|jpg|js|css|otf))
- url: /assets/(.+)
static_files: web/assets/\1
upload: web/assets/(.+)
- url: /.*
script: web/index.php
目录结构:
- api/api.yaml
- app/web_base.yaml
- app.yaml
- dispatch
当我尝试update_dispatch,我得到调度配置文件没有找到。有人能帮我吗?
谢谢你的回复。我已经从根文件夹中删除了app.yaml并更新了这两个模块。仍然收到该错误。有任何想法吗? –
这是你使用的确切的cmd和哪个目录? –
顺便说一句,你的文件实际上叫做'dispatch.yaml',而不是'dispatch',就像你在目录结构中提到的那样,对吧? –