MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / _set_static_path

Method _set_static_path

mod/project/java/java_web_conf.py:571–585  ·  view source on GitHub ↗
(self, project_data: dict)

Source from the content-addressed store, hash-verified

569 return False, False
570
571 def _set_static_path(self, project_data: dict):
572 if self.ws_type == "nginx":
573 res = self._ng_conf_onj.set_static_path(project_data)
574 if res is None:
575 return None
576 elif res is False:
577 err_msg = public.checkWebConfig()
578 if isinstance(err_msg, str):
579 return 'WEB服务器配置配置文件错误ERROR:<br><font style="color:red;">' + \
580 err_msg.replace("\n", '<br>') + '</font>'
581
582 return self._open_config_file(project_data)
583 else:
584 return res
585 return "只支持nginx设置静态路由"

Callers 1

set_static_pathMethod · 0.80

Calls 3

_open_config_fileMethod · 0.95
set_static_pathMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected