]>
Commit | Line | Data |
---|---|---|
a49b5422 | 1 | #!/usr/bin/python |
81675874 | 2 | |
a49b5422 | 3 | import tornado.ioloop |
feb02477 | 4 | import tornado.options |
81675874 | 5 | |
a49b5422 | 6 | tornado.options.define("port", type=int, default=8001, help="Port to listen on") |
feb02477 | 7 | |
a49b5422 | 8 | from webapp import Application |
feb02477 | 9 | |
a49b5422 MT |
10 | def 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 | 20 | run() |