~matsubara/juju-gui/merge-fail

Viewing all changes in revision 694.

  • Committer: Brad Crittenden
  • Date: 2013-05-28 20:22:45 UTC
  • mfrom: (682.1.7 httpserver)
  • Revision ID: bac@canonical.com-20130528202245-9v60w94mc0rkc5hp
Create a redirecting http server

For 'make prod' and 'make devel', the use of the SimpleHTTPServer fails if a
path not represented on the file server is entered directly into the address
field.  This situation occurs if one manually enters a namespace
(e.g. ':gui:') or uses a feature flag.

This branch adds a small wrapper python program that returns '/index.html'
if the path does not exist on the file system.  This approach isn't perfect as
you get shunted back to the front page.

R=benji, gary.poster
CC=
https://codereview.appspot.com/9836043

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: