From 02dd08a72f868f55ed766b22cb75294c51f3cb5f Mon Sep 17 00:00:00 2001 From: jobevers Date: Thu, 23 Feb 2017 14:15:09 -0600 Subject: [PATCH] allow lbrynet-daemon executable to be configured --- app/main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/main.js b/app/main.js index 1d8a11dd2..2edf5bb67 100644 --- a/app/main.js +++ b/app/main.js @@ -31,8 +31,12 @@ function lauchDaemon() { if (subpy) { return; } - console.log(`${__dirname}`); - executable = path.join(__dirname, 'dist', 'lbrynet-daemon'); + if (process.env.LBRY_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) // Need to handle the data event instead of attaching to // process.stdout because the latter doesn't work. I believe on