mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
fix: pass by env in managed services
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
63b01199fe
commit
39805b09e5
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,9 @@ func (ml *ModelLoader) startProcess(grpcProcess, id string, serverAddress string
|
|||
grpcControlProcess := process.New(
|
||||
process.WithTemporaryStateDir(),
|
||||
process.WithName(grpcProcess),
|
||||
process.WithArgs("--addr", serverAddress))
|
||||
process.WithArgs("--addr", serverAddress),
|
||||
process.WithEnvironment(os.Environ()...),
|
||||
)
|
||||
|
||||
ml.grpcProcesses[id] = grpcControlProcess
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue