Fix issue with logging environment variables in ApplicationDeploymentJob.php

This commit is contained in:
Andras Bacsai 2024-04-24 14:33:20 +02:00
parent 5a8ea15c4f
commit 6e7e4250e6

View File

@ -24,6 +24,7 @@
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Sleep;
use Illuminate\Support\Str;
use RuntimeException;
@ -743,6 +744,7 @@ private function save_environment_variables()
$envs = $envs->sort(function ($a, $b) {
return strpos($a, '$') === false ? -1 : 1;
});
Log::info("message", $envs->implode("\n"));
} else {
$this->env_filename = ".env";
foreach ($this->application->environment_variables as $env) {