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

Method set_config

class/projectModel/javaModel.py:1393–1408  ·  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

1391 return result
1392
1393 def set_config(self, project_name):
1394 ''&#x27;
1395 @name 设置项目配置
1396 @author hwliang<2021-08-09>
1397 @param project_name: string<项目名称>
1398 @return bool
1399 ''&#x27;
1400 project_find = self.get_project_find(project_name)
1401 if not project_find: return False
1402 if not project_find['project_config']: return False
1403 if not project_find['project_config']['bind_extranet']: return False
1404 if not project_find['project_config']['domains']: return False
1405 self.set_nginx_config(project_find)
1406 self.set_apache_config(project_find)
1407 public.serviceReload()
1408 return True
1409
1410 def clear_nginx_config(self, project_find):
1411 ''&#x27;

Callers 9

project_remove_domainMethod · 0.95
project_add_domainMethod · 0.95
bind_extranetMethod · 0.95
modify_project_duliMethod · 0.95
modify_project_neizhiMethod · 0.95

Calls 3

get_project_findMethod · 0.95
set_nginx_configMethod · 0.95
set_apache_configMethod · 0.95

Tested by

no test coverage detected