use caddyfile instead of api
This commit is contained in:
parent
53a5e2e45a
commit
3c79a8c778
9 changed files with 206 additions and 248 deletions
|
|
@ -132,12 +132,6 @@ 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