Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Jan 11, 2019
1 parent 358e98f commit 9c49fad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

## 3.2.6-8 (11/01/19)

- rollback: node bin path handling adaptation

## 3.2.5 (09/01/19)

- feat: enhance pm2 report
Expand Down
6 changes: 3 additions & 3 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ Client.prototype.launchDaemon = function(opts, cb) {
if (!process.env.PM2_DISCRETE_MODE)
Common.printOut(that.conf.PREFIX_MSG + 'Spawning PM2 daemon with pm2_home=' + this.pm2_home);

var interpreter = process.execPath
var interpreter = 'node';

if (process.execPath.indexOf('node') < -1)
interpreter = 'node';
if (require('shelljs').which('node') == null)
interpreter = process.execPath;

var child = require('child_process').spawn(interpreter, node_args, {
cwd : that.conf.cwd || process.cwd(),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pm2",
"preferGlobal": true,
"version": "3.2.7",
"version": "3.2.8",
"engines": {
"node": ">=4.0.0"
},
Expand Down

0 comments on commit 9c49fad

Please sign in to comment.