]> git.ipfire.org Git - ipfire.org.git/blob - src/scripts/ipfire.org-webapp.in
Introduce autotools
[ipfire.org.git] / src / scripts / ipfire.org-webapp.in
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("@configsdir@/@PACKAGE_NAME@.conf")
15 app.listen(tornado.options.options.port)
16
17 # Launch IOLoop
18 tornado.ioloop.IOLoop.current().start()
19
20 run()