]> git.ipfire.org Git - ipfire.org.git/blob - webapp.py
Make all absolute links use https:// instead of http://
[ipfire.org.git] / webapp.py
1 #!/usr/bin/python
2
3 import tornado.ioloop
4 import tornado.options
5
6 tornado.options.define("port", type=int, default=8001, help="Port to listen on")
7
8 from webapp import Application
9
10 def run():
11 tornado.options.parse_command_line()
12
13 # Initialize application
14 app = Application("webapp.conf")
15 app.listen(tornado.options.options.port)
16
17 # Launch IOLoop
18 tornado.ioloop.IOLoop.current().start()
19
20 run()