mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
Merge pull request #4563 from kimhc999/fix/get-pm2-path-fix
Fix an error for pm2 path on Windows.
This commit is contained in:
commit
fda26d0e4f
@ -45,7 +45,7 @@ Daemon.prototype.start = function() {
|
||||
|
||||
console.error('[PM2] Resurrecting PM2');
|
||||
|
||||
var path = cst.IS_WINDOWS ? process.cwd() + '/bin/pm2' : process.env['_'];
|
||||
var path = cst.IS_WINDOWS ? __dirname + '/../bin/pm2' : process.env['_'];
|
||||
var fork_new_pm2 = require('child_process').spawn('node', [path, 'update'], {
|
||||
detached: true,
|
||||
stdio: 'inherit'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user