I am using github action to create a pipeline and using pm2 as the process manager. pm2 reload server When I run the above command locally the process is reloaded. When run it through action runner by running the bash command provided by...
我也有同样的问题。最后,我找到了解决办法。我使用它的方法是在我的项目的根目录中创建一个bash脚本:...
Executing the command you suggested it seems it works nice: Maybe it's related: 1h ago was having trouble usingnpmandnodecommands with Github Actions (that runs on a Linux docker container) andthisfixed my issue. It suggested: sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node"...
一、问题简介 当服务器意外崩溃重启后,Node.js要能够自启动,恢复服务。 二、解决方案 1、三步完成 # 1、创建启动脚本 pm2 startup # 2、上面命令会输出类似如下提示,按照提示执行 [PM2] You have to run this command as root.Execute the following command: sudo su - c "env PATH=$PATH:/...
一、问题简介 当服务器意外崩溃重启后,Node.js要能够自启动,恢复服务。 二、解决方案 1、三步完成 # 1、创建启动脚本 pm2 startup # 2、上面命令会输出类似如下提示,按照提示执行 [PM2] You have to run this command as root.Execute the following command: sudo su - c "env PATH=$PATH:/...
but, if I runpm2 report, I getbash: $: command not found I had this same problem when deploying a project on a new windows machine. My temporary solution was to revert back to the same version that I have on the old machine (3.2.2): ...
When launching a PM2 command and if the daemon wasn't started it will printSpawning PM2 daemon, so it means that your PM2 daemon was stopped. For diskspace, check the logs stored under~/.pm2/pm2.log, by default they aren't rotated, check pm2-logrotate if you want to setup a rotation...
code: 'MODULE_NOT_FOUND', requireStack: [] } 2023-01-25T20:00:17: PM2 log: App [app.compiled:32] online 2023-01-25T20:00:17: PM2 log: App [app.compiled:10] online 2023-01-25T20:00:17: PM2 log: PM2 successfully forked
https://github.com/Unitech/pm2/blob/master/lib/binaries/CLI.js#L806 bash-5.0# npm install --no-optional pm2 bash-5.0# npx pm2 sysmonit /root/b/node_modules/pm2/lib/API/Extra.js:43 return cb() ^ TypeError: cb is not a function at API.CLI.launchSysMonitoring (/root/b/node_modules...
Command failed: getconf PAGESIZE PM2 | /bin/sh: getconf: command not found PM2 | PM2 | at ChildProcess.exithandler (child_process.js:303:12) PM2 | at ChildProcess.emit (events.js:311:20) PM2 | at ChildProcess.EventEmitter.emit (domain.js:505:15) PM2 | at maybeClose (internal/chil...