how to deal with static files to write app.yaml? [duplicate]
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">
精彩评论