Restart container when tech changes
Unittests / unittests (push) Successful in 10s Details
Unittests / deploy-dev (push) Successful in 47s Details

This commit is contained in:
Adam Štrauch 2024-02-01 22:02:22 +01:00
parent 1c5b8d8f50
commit 863d857283
Signed by: cx
GPG Key ID: 7262DAFE292BCE20
1 changed files with 6 additions and 0 deletions

View File

@ -433,6 +433,12 @@ func (p *Processor) Update(appTemplate apps.App) error {
if err != nil {
return fmt.Errorf("failed to enable tech: %v", err)
}
// We restart the container so everything can use the new tech
err = container.Restart()
if err != nil {
return err
}
}
return nil