0
토네이도 서버에 병 응용 프로그램을 탑재하려면 어떻게합니까? Here is my code토네이도 마운트 병 응용 프로그램
토네이도 서버에 병 응용 프로그램을 탑재하려면 어떻게합니까? Here is my code토네이도 마운트 병 응용 프로그램
bottle.default_app()
가 호출 WSGI 반환
if __name__ == "__main__":
bottle_app = bottle.default_app()
bottle_handler = tornado.wsgi.WSGIContainer(bottle_app)
HTTPServer(Application([(r"/ws", WSHandler),
(r"/css/(.*)", StaticFileHandler, {"path": "./css/"}),
(r"/js/(.*)", StaticFileHandler, {"path": "./js/"}),
(r"/img/(.*)", StaticFileHandler, {"path": "./img/"}),
("/(.*)", bottle_handler)])
).listen(1024)
IOLoop.instance().start()
내가 이미 프로젝트를 생성을 github에 https://github.com/cime/bottle-tornadosocket :) – redman