Skip to content

Instantly share code, notes, and snippets.

@owulveryck
Created February 5, 2020 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owulveryck/319cc2f7462afdde5bd346f16b2ee8ba to your computer and use it in GitHub Desktop.
Save owulveryck/319cc2f7462afdde5bd346f16b2ee8ba to your computer and use it in GitHub Desktop.
Service static files with GAE (google app-engine)
runtime: python37
service: website
handlers:
- url: /(.*)/
static_files: www/\1/index.html
upload: www/(.*)
- url: /
static_files: www/index.html
upload: www/index.html
- url: /([^\.]*)
static_files: www/\1/index.html
upload: www/(.*)
- url: /(.*/[^\.|^/]*$)
static_files: www/\1/index.html
upload: www/(.*)
- url: /(.*)
static_files: www/\1
upload: www/(.*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment