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 }