Skip to content

Commit

Permalink
add helper url to follow deploy logs on the web panel
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciojs committed Feb 12, 2024
1 parent aa9ec81 commit a05073e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands/cloud_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ func (d *KoolDeploy) Execute(args []string) (err error) {
}
}

if deployCreated.LogsUrl != "" {
d.Shell().Info(strings.Repeat("-", 40))
d.Shell().Info("Logs available at: ", deployCreated.LogsUrl)
d.Shell().Info(strings.Repeat("-", 40))

Check warning on line 124 in commands/cloud_deploy.go

View check run for this annotation

Codecov / codecov/patch

commands/cloud_deploy.go#L121-L124

Added lines #L121 - L124 were not covered by tests
}

s = utils.MakeFastLoading("Start deploying...", "Deploy started.", d.Shell().OutStream())
if _, err = deployer.StartDeploy(deployCreated); err != nil {
return
Expand Down
2 changes: 2 additions & 0 deletions services/cloud/api/deploy_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ type DeployCreateResponse struct {
Login string `json:"login"`
Password string `json:"password"`
} `json:"docker"`

LogsUrl string `json:"logs_url"`
}

// DeployCreate consumes the API endpoint to create a new deployment
Expand Down

0 comments on commit a05073e

Please sign in to comment.