Google App Engine static sites
Host multiple static sites with a single Google App Engine application. Python-based, using webapp2 and jinja2.
Main request handler matches domains to template directories, searches for files matching paths accordingly. Basic structure inspired by static-appengine-hoster, simplified and redesigned for purpose.
Running the application
-
Run using the development server (in current directory)
$ dev_appserver.py .
Configure
--address
and--port
to suit your needs. -
Add a host entry to demo locally
$ 127.0.0.1 example.com
-
Visit corresponding URLs in the browser, e.g. http://localhost:8080 and http://example.com:8080
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License