From ed705f5c7bcebdf15e2d9369fc608b47a98db156 Mon Sep 17 00:00:00 2001 From: Jeff Turner Date: Sat, 11 Jul 2026 00:32:31 +1000 Subject: [PATCH] fix: redirect process-compose internal log to .devbox/process-compose.log Pass --log-file to the process-compose binary so that errors and state transitions are written to the project's .devbox directory instead of the global /tmp/process-compose-$USER.log. This makes health-check failures and other diagnostics discoverable alongside the project. --- internal/services/manager.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/services/manager.go b/internal/services/manager.go index ead768a1c5e..99ec915b3fb 100644 --- a/internal/services/manager.go +++ b/internal/services/manager.go @@ -23,8 +23,9 @@ import ( ) const ( - processComposeLogfile = ".devbox/compose.log" - fileLockTimeout = 5 * time.Second + processComposeLogfile = ".devbox/compose.log" + processComposeInternalLogfile = ".devbox/process-compose.log" + fileLockTimeout = 5 * time.Second ) type instance struct { @@ -135,7 +136,7 @@ func StartProcessManager( } // Start building the process-compose command - flags := []string{"-p", strconv.Itoa(port)} + flags := []string{"-p", strconv.Itoa(port), "--log-file", filepath.Join(projectDir, processComposeInternalLogfile)} upCommand := []string{"up"} if len(requestedServices) > 0 {