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

Method _get_cmd_file

class/projectModel/pythonModel.py:1097–1109  ·  view source on GitHub ↗
(self, project_conf)

Source from the content-addressed store, hash-verified

1095 public.writeFile(cmd_file, start_cmd)
1096
1097 def _get_cmd_file(self, project_conf):
1098 cmd_file_map = {
1099 "python": "_python.sh",
1100 "uwsgi": "_uwsgi.sh",
1101 "gunicorn": "_gunicorn.sh",
1102 "command": "_cmd.sh",
1103 }
1104 cmd_file = "{}/{}{}".format(self._script_path, project_conf["pjname"], cmd_file_map[project_conf["stype"]])
1105 if project_conf["stype"] == "uwsgi":
1106 data = public.readFile(cmd_file)
1107 if data and "--pidfile" not in data:
1108 os.remove(cmd_file)
1109 return cmd_file
1110
1111 @staticmethod
1112 def get_project_pids(pid):

Callers 1

__start_projectMethod · 0.95

Calls 3

readFileMethod · 0.80
formatMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected