fix(monitor): change monitor url

pull/123/head
liuzheng712 2016-03-04 19:48:52 +08:00
parent 936faad1b9
commit f73d34b9cc
2 changed files with 2 additions and 2 deletions

View File

@ -460,7 +460,7 @@ def main():
}
tornado_app = tornado.web.Application(
[
(r'/monitor', MonitorHandler),
(r'/ws/monitor', MonitorHandler),
(r'/ws/terminal', WebTerminalHandler),
(r'/kill', WebTerminalKillHandler),
(r'/ws/exec', ExecHandler),

View File

@ -136,7 +136,7 @@
var protocol = 'ws://';
}
var endpoint = protocol + document.URL.match(RegExp('//(.*?)/'))[1] + '/monitor';
var endpoint = protocol + document.URL.match(RegExp('//(.*?)/'))[1] + '/ws/monitor';
var file_path = obj.attr('file_path');
var socket = new WebSocket(endpoint + '?file_path=' + file_path);