Unitech / pm2-deploy

Deploy part of PM2
http://pm2.keymetrics.io/docs/usage/deployment/
MIT License
178 stars 71 forks source link

pm2-deploy to windows box "The syntax of the command is incorrect." #198

Open bshea5 opened 3 years ago

bshea5 commented 3 years ago

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.

Thanks!

TianYa-Q commented 2 years ago

same problem. thanks for figure it out

SteadEXE commented 2 years ago

Same issue, any ETA on fix? pm2 -v 5.2.0