Skip to content

Commit

Permalink
Allow overriding internal client path as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreialecu committed Oct 25, 2016
1 parent 5036c12 commit 7028565
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/client/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ function tryCommand(cmd) {
function buildReplClient(dpd) {
var internalClientPath;
try {
internalClientPath = resolve('deployd/lib/internal-client.js', {basedir: dpd.deploydPath || process.cwd()})
if (dpd.deploydPath) {
internalClientPath = resolve(path.join(dpd.deploydPath, 'lib/internal-client.js'), {basedir: process.cwd()})
} else {
internalClientPath = resolve('deployd/lib/internal-client.js', {basedir: process.cwd()})
}

} catch (e) {
console.log('Could not find deployd/lib/internal-client.js');
process.exit(99);
Expand Down

0 comments on commit 7028565

Please sign in to comment.