Unitech / pm2-deploy

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

Possible bug #111

Closed galkin closed 7 years ago

galkin commented 7 years ago

How reproduce

If you have ecosystem.json

{
  apps: [
    {
      name: "app",
      script: "src/boot/app/app.js",
    }
  ],
  deploy: {
    production: {
      user: "root",
      host: "1.2.3.4",
      "ssh_options": ["StrictHostKeyChecking=no"],
      ref: "origin/master",
      repo: "git@github.com:user/name.git",
      path: "/srv/app/server",
      "post-deploy": "npm install --production && pm2 startOrRestart ecosystem.json"
    }
  }
}

Then your "ssh_options" will not work.

Bug fix

At pm2-deploy/deploy.js:86 spawn(piped_data, args, cb); => spawn(target_conf, args, cb);