Skip to content

Commit

Permalink
Continue with warnings if conda not found. Fixes #1678 (#1686)
Browse files Browse the repository at this point in the history
* Continue with warnings if conda not found. Fixes #1678

* Fix warning message if conda not found
  • Loading branch information
umesh-timalsina committed Jul 22, 2020
1 parent 0b07e0d commit 4c514da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/deepforge
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,16 @@ program.command('start')
.option('-N, --no-conda', 'do not start deepforge server in a conda environment.')
.option('-m, --mongo', 'start MongoDB')
.action(async args => {
if(args.conda){
try {
Conda.check();
} catch (e) {
console.log('Warning: conda executable not found. Please ' +
'install conda for automatic management of Python ' +
'dependencies via conda environments.');
args.conda = false;
}
}
const serverCommand = getDeepForgeServerCommand(args.conda);
const startAll = !args.server && !args.mongo;
if (startAll) {
Expand Down

0 comments on commit 4c514da

Please sign in to comment.