modifié: superTornado.py
This commit is contained in:
parent
f3510786e3
commit
6578a542a9
@ -207,13 +207,12 @@ if __name__ == "__main__":
|
|||||||
log.printL("->Server Start ...",lvl.INFO)
|
log.printL("->Server Start ...",lvl.INFO)
|
||||||
tornado.options.parse_command_line()
|
tornado.options.parse_command_line()
|
||||||
http_server = tornado.httpserver.HTTPServer(application,ssl_options={
|
http_server = tornado.httpserver.HTTPServer(application,ssl_options={
|
||||||
"certfile": os.path.join("/ssl", "server.crt"),
|
"certfile": "/ssl/server.crt"),
|
||||||
"keyfile": os.path.join("/ssl", "server.key"),
|
"keyfile": "/ssl/server.key"),
|
||||||
})
|
})
|
||||||
http_server.listen(portServ)
|
http_server.listen(portServ)
|
||||||
log.printL("->Server Start Successfully !",lvl.SUCCESS)
|
log.printL("->Server Start Successfully !",lvl.SUCCESS)
|
||||||
tornado.ioloop.IOLoop.instance().start()
|
tornado.ioloop.IOLoop.instance().start()
|
||||||
except Exception, e :
|
except Exception, e :
|
||||||
log.printL("Server Start Failed !",lvl.FAIL)
|
log.printL("Server Start Failed !",lvl.FAIL)
|
||||||
log.printL(e.value,lvl.FAIL)
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Reference in New Issue
Block a user