modifié: superTornado.py
This commit is contained in:
parent
2dfbc6fcb0
commit
dd1efef7be
@ -175,9 +175,14 @@ if __name__ == "__main__":
|
|||||||
print " ->Not blind unhabitant"
|
print " ->Not blind unhabitant"
|
||||||
print " ->Ip camera : " + camera
|
print " ->Ip camera : " + camera
|
||||||
print " ->Port Server : " + port
|
print " ->Port Server : " + port
|
||||||
|
|
||||||
tornado.options.parse_command_line()
|
tornado.options.parse_command_line()
|
||||||
http_server = tornado.httpserver.HTTPServer(application)
|
|
||||||
http_server.listen(80)
|
|
||||||
|
|
||||||
tornado.ioloop.IOLoop.instance().start()
|
try :
|
||||||
|
print("->Server Start ...")
|
||||||
|
http_server = tornado.httpserver.HTTPServer(application)
|
||||||
|
http_server.listen(port)
|
||||||
|
tornado.ioloop.IOLoop.instance().start()
|
||||||
|
except Exception, e :
|
||||||
|
print "Server Start Failed !"
|
||||||
|
print e
|
||||||
|
sys.exit(1)
|
||||||
|
Reference in New Issue
Block a user