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

Method clear_config

class/projectModel/javaModel.py:1441–1453  ·  view source on GitHub ↗

@name 清除项目配置 @author hwliang<2021-08-09> @param project_name: string<项目名称> @return bool

(self, project_name)

Source from the content-addressed store, hash-verified

1439 return True
1440
1441 def clear_config(self, project_name):
1442 ''&#x27;
1443 @name 清除项目配置
1444 @author hwliang<2021-08-09>
1445 @param project_name: string<项目名称>
1446 @return bool
1447 ''&#x27;
1448 project_find = self.get_project_find(project_name)
1449 if not project_find: return False
1450 self.clear_nginx_config(project_find)
1451 self.clear_apache_config(project_find)
1452 public.serviceReload()
1453 return True
1454
1455 def del_vhost(self, domain, context_path: str = ""):
1456 ''&#x27;

Callers 2

unbind_extranetMethod · 0.95
remove_projectMethod · 0.95

Calls 3

get_project_findMethod · 0.95
clear_nginx_configMethod · 0.95
clear_apache_configMethod · 0.95

Tested by

no test coverage detected