From 5774d48fa555c8e4ad4348bdcbdbc8efda93d226 Mon Sep 17 00:00:00 2001 From: Jonathon Byrdziak Date: Mon, 23 Mar 2026 17:43:52 -0700 Subject: [PATCH] Add debug logging to bluegreen secrets injection path The previous debug logging was only added to the standard startContainers path, but release/bluegreen deployments use dockerUpWithSecrets instead. Logs the override contents, full docker command, and docker output. Co-Authored-By: Claude Opus 4.6 --- src/Commands/ProtocolStart.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Commands/ProtocolStart.php b/src/Commands/ProtocolStart.php index 5d732bd..ee727c4 100644 --- a/src/Commands/ProtocolStart.php +++ b/src/Commands/ProtocolStart.php @@ -610,12 +610,18 @@ private function dockerUpWithSecrets(string $dir, StageRunner $runner): bool $dockerCommand = Docker::getDockerCommand(); $runner->log("{$dockerCommand} up -d (with secrets + deployment env)"); - Shell::run("cd " . escapeshellarg(rtrim($dir, '/')) + $runner->log("tmpEnv={$tmpEnv} overrideFile={$overrideFile}"); + $runner->log("override contents: " . file_get_contents($overrideFile)); + + $cmd = "cd " . escapeshellarg(rtrim($dir, '/')) . " && {$dockerCommand}" . " --env-file " . escapeshellarg($envFile) . " -f " . escapeshellarg($composePath) . " -f " . escapeshellarg($overrideFile) - . " up -d 2>&1", $returnVar); + . " up -d 2>&1"; + $runner->log("docker cmd: {$cmd}"); + $output = Shell::run($cmd, $returnVar); + $runner->log("docker exit={$returnVar} output={$output}"); $started = $returnVar === 0; unlink($tmpEnv);