allow lbrynet-daemon executable to be configured
This commit is contained in:
parent
762712ed69
commit
02dd08a72f
1 changed files with 6 additions and 2 deletions
|
@ -31,8 +31,12 @@ function lauchDaemon() {
|
||||||
if (subpy) {
|
if (subpy) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(`${__dirname}`);
|
if (process.env.LBRY_DAEMON) {
|
||||||
executable = path.join(__dirname, 'dist', 'lbrynet-daemon');
|
executable = process.env.LBRY_DAEMON;
|
||||||
|
} else {
|
||||||
|
executable = path.join(__dirname, 'dist', 'lbrynet-daemon');
|
||||||
|
}
|
||||||
|
console.log('Launching daemon: ' + executable)
|
||||||
subpy = require('child_process').spawn(executable)
|
subpy = require('child_process').spawn(executable)
|
||||||
// Need to handle the data event instead of attaching to
|
// Need to handle the data event instead of attaching to
|
||||||
// process.stdout because the latter doesn't work. I believe on
|
// process.stdout because the latter doesn't work. I believe on
|
||||||
|
|
Loading…
Reference in a new issue