如何为Google App Engine应用程序编写`app.yaml`文件?

时间:2011-02-22 11:12:17

标签: python google-app-engine yaml

我注册了一个Google App Engine应用,下面有一些文件:

  • /index.html
  • /tabs.css
  • /tab.js
  • /temp.py

我应该如何撰写app.yaml文件?

1 个答案:

答案 0 :(得分:1)

您应该将静态文件放入某个目录,例如staticdata 然后你的app.yaml看起来像:

application: temp
version: 1
runtime: python
api_version: 1

handlers:
- url: /staticdata
  static_dir: staticdata

- url: /.*
  script: temp.py