fix again
This commit is contained in:
parent
950139010e
commit
c08b7c1f63
2 changed files with 151 additions and 0 deletions
|
|
@ -132,6 +132,12 @@ func (a *App) provisionProject(ctx context.Context, p *Project) error {
|
|||
p.ProvisionError = err.Error()
|
||||
return err
|
||||
}
|
||||
if err := a.ensureCaddyTLSSubject(ctx, p.RouteHost); err != nil {
|
||||
_ = a.updateProvisioningState(ctx, p.ID, "failed", err.Error())
|
||||
p.ProvisionState = "failed"
|
||||
p.ProvisionError = err.Error()
|
||||
return err
|
||||
}
|
||||
if err := a.updateProvisioningState(ctx, p.ID, "provisioned", ""); err != nil {
|
||||
p.ProvisionState = "failed"
|
||||
p.ProvisionError = err.Error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue