Skip to content

Commit e6392ca

Browse files
committed
Updated the .env management
1 parent a2ec15d commit e6392ca

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Console/Command/PipelineRunCommand.php

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4444
if (file_exists($file = \dirname($cwd).'/.env')) {
4545
$dotenv->loadEnv($file);
4646
}
47+
if (file_exists($file = $cwd.'/'.$input->getArgument('path').'/.env')) {
48+
$dotenv->loadEnv($file);
49+
}
4750

4851
/** @var ClassLoader $autoload */
4952
$autoload = include 'vendor/autoload.php';

src/Console/Command/WorkflowRunCommand.php

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4444
if (file_exists($file = \dirname($cwd).'/.env')) {
4545
$dotenv->loadEnv($file);
4646
}
47+
if (file_exists($file = $cwd.'/'.$input->getArgument('path').'/.env')) {
48+
$dotenv->loadEnv($file);
49+
}
4750

4851
/** @var ClassLoader $autoload */
4952
$autoload = include 'vendor/autoload.php';

0 commit comments

Comments
 (0)