Skip to content

Commit a5343df

Browse files
committed
[fix] Use process.execPath for spawning.
1 parent 4ed1beb commit a5343df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/forever/monitor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var Monitor = exports.Monitor = function (script, options) {
7070
// Setup the command to spawn and the options to pass
7171
// to that command.
7272
//
73-
this.command = options.command || 'node';
73+
this.command = options.command || process.execPath;
7474
this.args = options.options || [];
7575
this.spawnWith = options.spawnWith || {};
7676
this.sourceDir = options.sourceDir;

0 commit comments

Comments
 (0)