How to host static HTML files on Google App Engine?

Yes you can host your static files on AppEngine. Just configure your app.yaml-file like the following

- url: /
  static_dir: static_files

And put your files in the directory static_files. This way every request is routed to your static files.


I've found what I believe is a really neat solution.

DryDrop

Basically, from what I'm led to believe, you deploy DryDrop to GAE, configure (domains, Github html repository etc.), then publish your static HTML by pushing to the GitHub repository (GitHub utilises 'hooks' to alert your DryDrop install to any new HTML changes).

I haven't used it personally, yet, but if the former CTO of Threadless Tees, Harper Reed, thinks it's OK, that's good enough for me :-D .

Cheers

Rich


I just had the same problem and decided to use this solution... It serves static files from the root directory and uses index.html if you don't give an file. Hope that helps.

# re-direct to index.html if no path is give
- url: /
  static_files: index.html
  upload: index.html

# access the static resources in the root director

- url: /(.*)
  static_files: \1
  upload: (.*)

To use your own domain with Google App Engine first you have to set your domain to work with Google Apps.

You then link the relevant Google App Engine application to the Google Apps Domain.