Skip to content

Commit a05073e

Browse files
committed
add helper url to follow deploy logs on the web panel
1 parent aa9ec81 commit a05073e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

commands/cloud_deploy.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ func (d *KoolDeploy) Execute(args []string) (err error) {
118118
}
119119
}
120120

121+
if deployCreated.LogsUrl != "" {
122+
d.Shell().Info(strings.Repeat("-", 40))
123+
d.Shell().Info("Logs available at: ", deployCreated.LogsUrl)
124+
d.Shell().Info(strings.Repeat("-", 40))
125+
}
126+
121127
s = utils.MakeFastLoading("Start deploying...", "Deploy started.", d.Shell().OutStream())
122128
if _, err = deployer.StartDeploy(deployCreated); err != nil {
123129
return

services/cloud/api/deploy_create.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ type DeployCreateResponse struct {
2525
Login string `json:"login"`
2626
Password string `json:"password"`
2727
} `json:"docker"`
28+
29+
LogsUrl string `json:"logs_url"`
2830
}
2931

3032
// DeployCreate consumes the API endpoint to create a new deployment

0 commit comments

Comments
 (0)