()
| 100 | |
| 101 | |
| 102 | async def main(): |
| 103 | tornado.options.parse_command_line() |
| 104 | if not (options.facebook_api_key and options.facebook_secret): |
| 105 | print("--facebook_api_key and --facebook_secret must be set") |
| 106 | return |
| 107 | http_server = tornado.httpserver.HTTPServer(Application()) |
| 108 | http_server.listen(options.port) |
| 109 | await asyncio.Event().wait() |
| 110 | |
| 111 | |
| 112 | if __name__ == "__main__": |
no test coverage detected