fix deploy and logs
This commit is contained in:
parent
79b3c8d693
commit
af8bbf536f
5 changed files with 40 additions and 6 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue