Skip to content

Commit 03f568c

Browse files
Add --source option on binary startup
1 parent 6e42e95 commit 03f568c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"version": "1.4.6"
3+
}

lib/Local.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var childProcess = require('child_process'),
55
running = require('is-running'),
66
LocalBinary = require('./LocalBinary'),
77
LocalError = require('./LocalError'),
8+
config = require('../config'),
89
psTree = require('ps-tree');
910

1011
function Local(){
@@ -205,7 +206,7 @@ function Local(){
205206
};
206207

207208
this.getBinaryArgs = function(){
208-
var args = ['--daemon', this.opcode, '--log-file', this.logfile];
209+
var args = ['--daemon', this.opcode, '--log-file', this.logfile, '--source', `nodejs-${config.version}`];
209210
if(this.key) {
210211
args.push('--key');
211212
args.push(this.key);

0 commit comments

Comments
 (0)