-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
When I run pm2 deploy ... this appears:
--> Deploying to production environment
--> on host ...
/bin/bash: ...\node_modules\pm2-deploy\deploy: No such file or directory
Deploy failed
Deploy failed with exit code: 127
I dug around and realized that
Line 41 in 987428a
| var proc = child_process.spawn('sh', ['-c', cmd], { stdio: 'inherit' }); |
starts the bash process, which causes the error. When I tried to start the process from cmd, instead of launching deploy, the deploy.js file opens in notepad. I renamed deploy to deploy.sh. Now it outputs
/bin/bash: ...\node_modules\pm2-deploy\deploy.sh: command not foundAnd when I run all the arguments of this process, a bash window appears and nothing happens.
Metadata
Metadata
Assignees
Labels
No labels