(self, project_conf)
| 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): |
no test coverage detected