When running pm2 deploy production setup, an error is thrown after the SSH connection is established.
The syntax of the command is incorrect.
setup paths failed
This seems to occur due to line 212 in pm2-deploy/deploy.
run "mkdir -p $path/{shared/{logs,pids},source}"
Where it is attempting to create a directory, but in CMD, the forward slashes are not supported. I can get around this by setting a different default shell for OpenSSH(in my case, git bash) on the box, but if pm2 is supporting Windows, this line should be adjusted.
When running
pm2 deploy production setup
, an error is thrown after the SSH connection is established.This seems to occur due to line 212 in pm2-deploy/deploy.
run "mkdir -p $path/{shared/{logs,pids},source}"
Where it is attempting to create a directory, but in CMD, the forward slashes are not supported. I can get around this by setting a different default shell for OpenSSH(in my case, git bash) on the box, but if pm2 is supporting Windows, this line should be adjusted.Thanks!