Skip to content

Commit

Permalink
Merge pull request #1223 from lowdefy/cli-fix
Browse files Browse the repository at this point in the history
fix(cli): Check env for configDirectory.
  • Loading branch information
SamTolmay committed Jun 7, 2022
2 parents 015bd59 + eeab1f7 commit d570f4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/cli/src/utils/startUp.js
Expand Up @@ -30,8 +30,9 @@ async function startUp({ context, options = {}, command }) {
context.command = command.name();
context.commandLineOptions = options;
context.print = createPrint();

context.configDirectory = path.resolve(options.configDirectory || process.cwd());
context.configDirectory = path.resolve(
options.configDirectory || process.env.LOWDEFY_DIRECTORY_CONFIG || process.cwd()
);
const { cliConfig, lowdefyVersion, plugins } = await getLowdefyYaml(context);
context.cliConfig = cliConfig;
context.lowdefyVersion = lowdefyVersion;
Expand Down

0 comments on commit d570f4c

Please sign in to comment.