繁体   English   中英

Google App Engine Python上传错误

[英]Google App Engine Python Upload Error

在尝试通过Google App Engine Launcher部署我的Python API时,我不确定为什么会出现此错误。

任何想法我在这里发生了什么? 下面是错误和我关联的App.yaml文件。

appcfg.py: error: Error parsing C:\Users\MYNAME\Desktop\Workspace\Imhotep\Imhotep\app.yaml: while parsing a block mapping
      in "C:\Users\MYNAME\Desktop\Workspace\Imhotep\Imhotep\app.yaml", line 1, column 1
    expected <block end>, but found '<block sequence start>'
      in "C:\Users\MYNAME\Desktop\Workspace\Imhotep\Imhotep\app.yaml", line 14, column 2.
    2013-11-17 20:37:33 (Process exited with code 2)





application: <IHAVEMYAPPIDHERE - PROVIDED BY GAE>
version: 1
runtime: python27
threadsafe: true
api_version: 1

handlers:
 # Static assets
- url: /images
  static_dir: static/images


 # Endpoints handler
 - url: /_ah/spi/.*
  script: imhotep_api.APPLICATION

空白在yaml文件中很重要。

看起来第二个网址前面有一个额外的空间。

我不确定额外的空白行是否会导致问题。

哦,如果您在部署时遇到问题,可能意味着您应该首先在本地进行测试。

我只是注意到在我的所有app.yaml文件中,线程安全设置为'是'而不是'真'。 此外,可能更重要的是,我从未在.yaml文件中看到'.APPLICATION'扩展名。 在我的全部,以及我看到的所有.yaml都是'.app'。

例如:脚本:imhotep_api.app

对不起,如果那没有帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM