Skip to content

Instantly share code, notes, and snippets.

@steren
Last active August 29, 2015 14:24
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 steren/8fd9516309573cb27cc5 to your computer and use it in GitHub Desktop.
Save steren/8fd9516309573cb27cc5 to your computer and use it in GitHub Desktop.
Serve only static files with Google AppEngine (like on GitHub pages)
# Add this file at the root of your directory,
# and your static files in a public/ folder.
# Use 'gcloud preview app deploy .' to publish to AppEngine.
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /(.+)
static_files: public/\1
upload: public/(.*)
- url: /
static_files: public/index.html
upload: public/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment