Skip to content

Instantly share code, notes, and snippets.

@girvan
Created March 22, 2012 04:27
Show Gist options
  • Save girvan/2155910 to your computer and use it in GitHub Desktop.
Save girvan/2155910 to your computer and use it in GitHub Desktop.
application: your_application_name
version: 2
runtime: python
api_version: 1
handlers:
# 指定這個目錄為靜態
- url: /tools
static_dir: tools
# 如果你想要全站都當靜態檔,就用這個
- url: /
static_files: index.html
upload: index.html
- url: /(.+)/
static_files: \1/index.html
upload: (.+)/index.html
- url: /(.+)\.(\w+)
static_files: \1.\2
upload: (.+)\.(\w+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment