开发者

how to deal with static files to write app.yaml? [duplicate]

This question already has an answer here: Closed 11 years ago.

Possible Duplicate:

how to write yaml file

I registered a Google App Engine app and I have some files below:

/index.html

/tabs.css

/tab.js

开发者_开发知识库

/temp.py

How should I write the app.yaml file?


application: ***your-app-name***
version: 1
runtime: python
api_version: 1

handlers:
- url: /(robots\.txt|favicon\.ico)
  static_files: public/\1
  upload: public/(.*)

- url: /public
  static_dir: public

- url: /.*
  script: main.py

Create a pubic directory under you app's root directory and put your static files in there. You can include them in your HTML files like this:

<link rel="stylesheet" href="/public/style.css">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜