Closed galkin closed 7 years ago
If you have ecosystem.json
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.
At pm2-deploy/deploy.js:86 spawn(piped_data, args, cb); => spawn(target_conf, args, cb);
spawn(piped_data, args, cb);
spawn(target_conf, args, cb);
How reproduce
If you have
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);