save code
This commit is contained in:
+3
-3
@@ -72,13 +72,13 @@ def get_server_state():
|
||||
|
||||
@monitor.route('/')
|
||||
def serve_index():
|
||||
return send_from_directory('static', 'index.html')
|
||||
return send_from_directory('static', 'monitor.html')
|
||||
|
||||
if __name__ == '__main__':
|
||||
# 启动Flask应用,启用多线程处理
|
||||
monitor.run(
|
||||
host='0.0.0.0',
|
||||
port=5001,
|
||||
threaded=True, # 启用多线程处理并发请求
|
||||
port=8018,
|
||||
threaded=False, # 启用多线程处理并发请求
|
||||
debug=False # 生产环境应设置为False
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user