我想爲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',就像你在目錄結構中提到的那樣,對吧? –