Google App Engine dispatch.yaml验证错误PHP模块

时间:2016-03-24 14:44:22

标签: php google-app-engine redirect

更新dispatch.yaml时出现以下错误。

  

错误400:---开始服务器输出---
  验证错误:无效的调度配置 - 模块'重定向'不存在。上传此模块的版本,然后重试   ---终端服务器输出---

的app.yaml

  

申请:测试
  模块:默认
  版本:1-1
  运行时:php55
  api_version:1
  线程安全:是的   处理:
   - url:/(.*)
    static_files:index.html
    上传:index.html

redirect.yaml

  

申请:测试
  模块:重定向
  版本:1-1
  运行时:php55
  api_version:1
  线程安全:是的   处理:
   - 网址:/
    脚本:routing.php

dispatch.yaml

  

调度:
   - 网址:" example.com/ "
    模块:重定向

   - 网址:"
/ *"
    module:默认

我可以解决它吗?

1 个答案:

答案 0 :(得分:1)

当您在文件夹上运行appcfg.py update时,只会上传app.yaml指定的默认模块。您需要指定要单独上传的任何其他模块。