]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blame - www/webapp.py
Merge branch 'planet' into next
[people/shoehn/ipfire.org.git] / www / webapp.py
CommitLineData
81675874 1#!/usr/bin/python2.6
2
3import tornado.httpserver
4import tornado.ioloop
5
6from webapp import Application
7application = Application()
8
9if __name__ == "__main__":
0942aa05
MT
10 http_server = tornado.httpserver.HTTPServer(application, xheaders=True)
11 http_server.listen(8001)
3add293a
MT
12
13 try:
14 tornado.ioloop.IOLoop.instance().start()
d718f42f 15 except:
3add293a
MT
16 # Shutdown mirror monitoring
17 from webapp.mirrors import mirrors
18 mirrors.shutdown()
19
20 raise