【问题标题】:App Engine Configuration WoesApp Engine 配置问题
【发布时间】:2011-05-06 04:20:25
【问题描述】:

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

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$Handler

任何帮助将不胜感激

【问题讨论】:

    标签: google-app-engine configuration yaml


    【解决方案1】:

    您肯定在使用Python yaml configuration 规范。
    看看有不同语法的Java Application Configuration

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-12-08
    • 2011-09-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-08
    • 2012-09-06
    相关资源
    最近更新 更多