App Engine配置问题

时间:2010-11-07 00:29:01

标签: google-app-engine configuration yaml

尝试通过yaml配置我的java GAE实例。我正在使用的JS库生成一个dir结构作为其构建过程的一部分;我正在尝试将网址映射到静态目录结构。

application: scserver
version: 1
runtime: java

handlers:
- url: /static/(.*)/detect-browser
  static_files: static/\1/detect-browser
  upload: static/(.*)/detect-browser
  mime_type: text/javascript

- url: /app/(..)
  static_files: static/app/\1/index.html
  upload: static/app/(.*)/index.html
  mime_type: text/html

- url: /app
  static_files: static/app/en/619741d07103b901ab82148129831c8d1ac0ff8d/index.html
  upload: static/app/en/619741d07103b901ab82148129831c8d1ac0ff8d/index.html
  mime_type: text/html

- url: /static
  static_dir: static  

- url: /app
  static_dir: static/app

-static_files:
  - include: /static/**

我得到了

  

第7行,第15栏:无法找到   类上的属性'static_files':   com.google.apphosting.utils.config.AppYaml $处理程序

任何帮助将不胜感激

1 个答案:

答案 0 :(得分:1)

您肯定使用的是Python yaml configuration规范 请查看具有不同语法的Java Application Configuration