Gunicorn测试完成,里程碑是服务注册成功,服务器自启动的时候也能正常运行
This commit is contained in:
@@ -210,6 +210,19 @@ class ServerConnectionTab(QWidget):
|
||||
self.status_label.setStyleSheet("color: green;")
|
||||
QMessageBox.information(self, "成功", f"成功连接到服务器: {ip}")
|
||||
|
||||
# 更新状态栏显示服务器信息
|
||||
try:
|
||||
main_window = self.parent().parent()
|
||||
if hasattr(main_window, 'remote_commands_tab'):
|
||||
server_config = {
|
||||
'host': ip,
|
||||
'remote_dir': self.remote_dir_input.text()
|
||||
}
|
||||
main_window.remote_commands_tab.set_server_info(server_config)
|
||||
logger.info(f"连接服务器后更新状态栏: {ip}")
|
||||
except Exception as e:
|
||||
logger.error(f"连接服务器后更新状态栏失败: {str(e)}")
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"连接服务器失败: {str(e)}")
|
||||
self.status_label.setText("连接失败")
|
||||
|
||||
Reference in New Issue
Block a user