Skip to content

Commit

Permalink
Fixes L11 base configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jan 17, 2024
1 parent b4982df commit 891e515
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/BuildProcess/HarmonizeConfigurationFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@ public function __invoke()
{
Helpers::step('<options=bold>Harmonizing Configuration Files</>');

$configFiles = (new Finder())->files()->in($this->appPath.'/config');
foreach ([
$this->appPath.'/vendor/laravel/framework/config',
$this->appPath.'/config',
] as $path) {
if (! is_dir($path)) {
continue;
}

foreach ($configFiles as $file) {
file_put_contents(
$file->getRealPath(),
$this->replaceAwsEnvironmentVariables($file)
);
foreach ((new Finder())->files()->in($path) as $file) {
file_put_contents(
$file->getRealPath(),
$this->replaceAwsEnvironmentVariables($file)
);
}
}
}

Expand Down

0 comments on commit 891e515

Please sign in to comment.