🐛 Fix launchpad

This commit is contained in:
2025-12-13 17:29:04 +08:00
parent 0d2f78b4e7
commit 4d164ff7bf
2 changed files with 13 additions and 7 deletions

View File

@@ -167,6 +167,12 @@ func startSourceService(ctx context.Context, s config.Service, color string) {
cmd := exec.CommandContext(ctx, parts[0], parts[1:]...)
cmd.Dir = s.Path
env := os.Environ()
for _, e := range s.Prod.Environment {
env = append(env, os.ExpandEnv(e))
}
cmd.Env = env
runAndMonitorCommand(ctx, cmd, s.Name, prefix)
}