From 3d6ce4905bc26322f7d1076cec16d9eb713a2f57 Mon Sep 17 00:00:00 2001 From: Nick Goodall Date: Tue, 13 Jan 2026 13:34:28 +0000 Subject: [PATCH] time deploy/setup --- deploy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy.go b/deploy.go index aa697e6..b9539c6 100644 --- a/deploy.go +++ b/deploy.go @@ -12,6 +12,7 @@ import ( "path/filepath" "runtime" "strings" + "time" "unicode" "github.com/pelletier/go-toml/v2" @@ -116,12 +117,14 @@ func runSetup() error { return err } defer closeSSHControlMaster(ctx.serverIP) + start := time.Now() if err := performSetup(ctx); err != nil { return err } fmt.Printf("\nSetup complete; PocketBase should be reachable at https://%s\n", ctx.domain) + fmt.Printf("Total setup time: %s\n", time.Since(start).Round(time.Millisecond)) return nil } @@ -177,6 +180,7 @@ func runDeploy() error { return err } defer closeSSHControlMaster(ctx.serverIP) + start := time.Now() binaryPath := filepath.Join(ctx.serviceDir, "pocketbase") exists, err := remoteBinaryExists(ctx.serverIP, binaryPath) @@ -199,6 +203,7 @@ func runDeploy() error { } fmt.Printf("\nDeployment complete; PocketBase should be reachable at https://%s\n", ctx.domain) + fmt.Printf("Total deployment time: %s\n", time.Since(start).Round(time.Millisecond)) return nil }