Skip to content

Instantly share code, notes, and snippets.

@jlandure
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save jlandure/6c948763e0470e5d3918 to your computer and use it in GitHub Desktop.

Select an option

Save jlandure/6c948763e0470e5d3918 to your computer and use it in GitHub Desktop.
app.yaml z formation
application: z-test
version: v2
runtime: python27
api_version: 1
threadsafe: true
default_expiration: "30d"
handlers:
# re-direct to index.html if no path is give
- url: /
static_files: index.html
upload: index.html
expiration: "0d 5m"
# re-direct to index.html
- url: /index.html(.*)
static_files: index.html
upload: index.html(.*)
expiration: "0d 5m"
- url: /(.*\.md)
static_files: \1
upload: (.*\.md)
mime_type: text/x-markdown
- url: /(.*\.ttf)
static_files: \1
upload: (.*\.ttf)
mime_type: application/x-font-ttf
- url: /(.*\.json)
static_files: \1
upload: (.*\.json)
mime_type: application/json
- url: /(.*\.yaml)
static_files: \1
upload: (.*\.yaml)
mime_type: text/x-yaml
# access the static resources in the root director
- url: /(.*)
static_files: \1
upload: (.*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment