fix deploy and logs

This commit is contained in:
pavel 2026-05-14 22:00:04 +02:00
commit af8bbf536f
5 changed files with 40 additions and 6 deletions

View file

@ -103,6 +103,14 @@ func (a *App) provisionProject(ctx context.Context, p *Project) error {
p.ProvisionError = err.Error()
return err
}
if p.RepoURL != "" {
if err := a.buildProjectBinary(*p); err != nil {
_ = a.updateProvisioningState(ctx, p.ID, "failed", err.Error())
p.ProvisionState = "failed"
p.ProvisionError = err.Error()
return err
}
}
if err := a.renderSystemdForProject(ctx, *p); err != nil {
_ = a.updateProvisioningState(ctx, p.ID, "failed", err.Error())