modifié: superTornado.py

This commit is contained in:
sidya82 2014-03-12 16:53:55 +01:00
parent f3510786e3
commit 6578a542a9
1 changed files with 2 additions and 3 deletions

View File

@ -207,13 +207,12 @@ if __name__ == "__main__":
log.printL("->Server Start ...",lvl.INFO)
tornado.options.parse_command_line()
http_server = tornado.httpserver.HTTPServer(application,ssl_options={
"certfile": os.path.join("/ssl", "server.crt"),
"keyfile": os.path.join("/ssl", "server.key"),
"certfile": "/ssl/server.crt"),
"keyfile": "/ssl/server.key"),
})
http_server.listen(portServ)
log.printL("->Server Start Successfully !",lvl.SUCCESS)
tornado.ioloop.IOLoop.instance().start()
except Exception, e :
log.printL("Server Start Failed !",lvl.FAIL)
log.printL(e.value,lvl.FAIL)
sys.exit(1)