2010-11-07 114 views
1

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

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

你绝对使用Python yaml configuration规范。
查看具有不同语法的Java Application Configuration

+0

你是说我做错了吗? ;)我将如何做以上表明? – hvgotcodes 2010-11-07 13:22:03

+0

@hvg请阅读Java yaml规范,然后发布您的解决方案 – systempuntoout 2010-11-07 13:25:22

+0

/sys,从此链接的信息http://code.google.com/appengine/docs/java/configyaml/appconfig_yaml.html我没有看到一种方式来完成这一点。 – hvgotcodes 2010-11-07 13:33:37