]> git.ipfire.org Git - ipfire.org.git/blame - src/scripts/ipfire.org-webapp.in
Introduce autotools
[ipfire.org.git] / src / scripts / ipfire.org-webapp.in
CommitLineData
a49b5422 1#!/usr/bin/python
81675874 2
a49b5422 3import tornado.ioloop
feb02477 4import tornado.options
81675874 5
a49b5422 6tornado.options.define("port", type=int, default=8001, help="Port to listen on")
feb02477 7
a49b5422 8from webapp import Application
feb02477 9
a49b5422
MT
10def run():
11 tornado.options.parse_command_line()
3add293a 12
a49b5422 13 # Initialize application
a292b0f8 14 app = Application("@configsdir@/@PACKAGE_NAME@.conf")
a49b5422 15 app.listen(tornado.options.options.port)
3add293a 16
a49b5422
MT
17 # Launch IOLoop
18 tornado.ioloop.IOLoop.current().start()
940227cb 19
a49b5422 20run()