ijd8.COM

A simple blog for an old Ma Nong.

让 Octopress 博客运行在 GAE 上

Permalink

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

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

YAML: 仅需要修改这个文件 https://raw.github.com/relarge/octopress-gae/master/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

Write a Comment

Submit Comment Login
Based on Golang + fastHTTP + sdb | go1.16.7 Processed in 0ms