【问题标题】:Google App Engine dispatch.yaml Validation error PHP moduleGoogle App Engine dispatch.yaml 验证错误 PHP 模块
【发布时间】:2016-07-12 04:58:44
【问题描述】:

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

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

app.yaml

应用程序:测试
模块:默认
版本:1-1
运行时:php55
api_version: 1
线程安全:是

处理程序:
- 网址:/(.*)
静态文件:index.html
上传:index.html

redirect.yaml

应用程序:测试
模块:重定向
版本:1-1
运行时:php55
api_version: 1
线程安全:是

处理程序:
- 网址:/
脚本:routing.php

dispatch.yaml

发货:
- 网址:“example.com/
模块:重定向

- 网址:“
/*”
模块:默认

我可以解决它吗?

【问题讨论】:

  • 你使用什么命令来部署?
  • @Chris 我尝试使用 appcfg.py -A test update /folder 和 appcfg.py -A test update_dispatch /folder。两者都不起作用。

标签: php google-app-engine redirect


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-20
    • 2010-11-01
    • 2019-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多