]> git.ipfire.org Git - people/shoehn/ipfire.org.git/commitdiff
application: Add development vhosts.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 May 2014 11:55:33 +0000 (13:55 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 May 2014 11:55:33 +0000 (13:55 +0200)
webapp/__init__.py

index d8904249314d8a7c106d6af42d01db82dfcb1f99..3dfdbecf35a13a3f6479755ecf8531ec1f06474b 100644 (file)
@@ -132,7 +132,7 @@ class Application(tornado.web.Application):
                ] + static_handlers)
 
                # planet.ipfire.org
-               self.add_handlers(r"planet\.ipfire\.org", [
+               self.add_handlers(r"planet(\.dev)?\.ipfire\.org", [
                        (r"/", PlanetMainHandler),
                        (r"/post/([A-Za-z0-9_-]+)", PlanetPostingHandler),
                        (r"/user/([a-z0-9_-]+)", PlanetUserHandler),
@@ -216,7 +216,7 @@ class Application(tornado.web.Application):
                ] + static_handlers)
 
                # admin.ipfire.org
-               self.add_handlers(r"admin\.ipfire\.org", [
+               self.add_handlers(r"admin(\.dev)?\.ipfire\.org", [
                        (r"/", AdminIndexHandler),
                        (r"/login", AdminLoginHandler),
                        (r"/logout", AdminLogoutHandler),