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

Method clear_config

class/projectModel/nodejsModel.py:946–958  ·  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

944 return public.returnResult(True)
945
946 def clear_config(self,project_name):
947 ''&#x27;
948 @name 清除项目配置
949 @author hwliang<2021-08-09>
950 @param project_name: string<项目名称>
951 @return bool
952 ''&#x27;
953 project_find = self.get_project_find(project_name)
954 if not project_find: return False
955 self.clear_nginx_config(project_find)
956 self.clear_apache_config(project_find)
957 public.serviceReload()
958 return True
959
960 def clear_apache_config(self,project_find):
961 ''&#x27;

Callers 2

remove_projectMethod · 0.95
unbind_extranetMethod · 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