Skip to content

Instantly share code, notes, and snippets.

@jeremydw
Last active September 8, 2017 17:42
Show Gist options
  • Save jeremydw/04393e0b06441b92d1ef91cccaab90c8 to your computer and use it in GitHub Desktop.
Save jeremydw/04393e0b06441b92d1ef91cccaab90c8 to your computer and use it in GitHub Desktop.
Minimal app.yaml for static builds – also handles index.html serving
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /(.*\..*)
static_files: build/\1
upload: build/(.*\..*)
secure: always
- url: /(.+)/
static_files: build/\1/index.html
upload: build/(.+)/index.html
secure: always
- url: /(.+)
static_files: build/\1/index.html
upload: build/(.+)/index.html
secure: always
- url: /
static_files: build/index.html
upload: build/index.html
secure: always
skip_files:
- (?!build).*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment