Skip to content

Commit

Permalink
fix: dashboard link
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuanlin Lin committed Jan 23, 2025
1 parent 0f406ca commit ba799ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func runDeploy(f *cmdutil.Factory, opts *Options) error {

if domainName == "" {
fmt.Println("Service deployed successfully, you can access it via:")
fmt.Println("https://dash.zeabur.com/projects/" + service.Project.ID + "/services/" + service.ID + "?envID=" + environment.ID)
fmt.Println("https://zeabur.com/projects/" + service.Project.ID + "/services/" + service.ID + "?envID=" + environment.ID)
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/service/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func runDeployInteractive(f *cmdutil.Factory, opts *Options) error {
s.Stop()

fmt.Printf("%s Service %s created 🚀\n", cmdutil.SuccessIcon, service.Name)
fmt.Printf("https://dash.zeabur.com/projects/%s/services/%s", opts.projectID, service.ID)
fmt.Printf("https://zeabur.com/projects/%s/services/%s", opts.projectID, service.ID)

return nil

Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/template/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func runDeploy(f *cmdutil.Factory, opts *Options) error {
return err
}

f.Log.Infof("Template successfully deployed into project %q (https://dash.zeabur.com/projects/%s).", res.Name, res.ID)
f.Log.Infof("Template successfully deployed into project %q (https://zeabur.com/projects/%s).", res.Name, res.ID)

if d, ok := vars["PUBLIC_DOMAIN"]; ok && project.Region.ID != "sha1" {
s = spinner.New(cmdutil.SpinnerCharSet, cmdutil.SpinnerInterval,
Expand All @@ -201,7 +201,7 @@ func runDeploy(f *cmdutil.Factory, opts *Options) error {
for {
if time.Since(start) > 2*time.Minute {
s.Stop()
return fmt.Errorf("failed to wait service ready, check logs in https://dash.zeabur.com/projects/%s", res.ID)
return fmt.Errorf("failed to wait service ready, check logs in https://zeabur.com/projects/%s", res.ID)
}

time.Sleep(2 * time.Second)
Expand Down

0 comments on commit ba799ed

Please sign in to comment.