爱简单吧

分享简单,爱生活,爱简单

让Octopress 博客运行在GAE上

在中国,GAE 空间的速度是Github 的10倍,大家是存放静态文件。

只需配置app.yaml 文件即可。





仅需要修改这个文件Raw 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

 

本文简短网址: http://www.ijd8.com/t/8 转摘注明来源

Category: Octopress Tags: GAE, github

Related articles

 

Share

 

Comments