(self, nodejs_version)
| 88 | os.makedirs(self.pm2_logs_path, 493) |
| 89 | |
| 90 | def set_pack_cmd(self, nodejs_version): |
| 91 | pack_path = "{}/{}/lib/node_modules/{}/bin".format(self.nodejs_path, nodejs_version, self.manager) |
| 92 | if os.path.exists(pack_path) and os.path.isdir(pack_path): |
| 93 | self.pack_cmd = pack_path |
| 94 | return self |
| 95 | |
| 96 | def set_pm2_cmd(self, nodejs_version): |
| 97 | pm2_path = "{}/{}/lib/node_modules/pm2/bin".format(self.nodejs_path, nodejs_version) |