Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add helper url to follow deploy logs on the web panel #502

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
}
}

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
Loading