请告诉我为 GAE 部署我的项目。
由于以下错误,我无法部署我的项目。
%appcfg.py update app.yaml dispatch.yaml worker.yaml
(omissions)
appcfg.py: error: Error parsing ./dispatch.yaml: Unexpected attribute 'dispatch' for object of type AppInfoExternal.
in "./dispatch.yaml", line 4, column 1.
该项目在直接项目文件夹中具有以下 yaml 文件。
app.yaml
调度.yaml
工人.yaml
以下是dispatch.yaml。
application: my-app
dispatch:
- url: "*/worker/*"
module: worker
以下是worker.yaml。
application: my-app
module: worker
api_version: 1
threadsafe: false
version: uno
runtime: python27
instance_class: B1
manual_scaling:
instances: 1
handlers:
- url: /_ah/start
script: my-worker.app
另外,请确保你运行appcfg.py update_dispatch
,这是一个单独的命令update
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)