在中国,GAE 空间的速度是 Github 的10倍,大家是存放静态文件。
只需配置app.yaml 文件即可。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
application: your application id
version: 1
runtime: python
api_version: 1
threadsafe: true
handlers:
# index files
- url: /(.*)/
static_files: public/\1/index.html
upload: public/(.*)/index.html
expiration: "15m"
# site root
- url: /
static_files: public/index.html
upload: public/index.html
expiration: "15m"
- url: /blog/(.*)
static_files: public/blog/\1/index.html
upload: public/blog/(.*)/index.html
expiration: "15m"
- url: /
static_dir: public