fix deploy start time counting

This commit is contained in:
2026-01-13 17:36:22 +00:00
parent 895dee8b63
commit f63243e2f2

View File

@@ -1080,7 +1080,7 @@ func runDeploy() error {
defer func() { defer func() {
closeSSHControlMaster(ctx.serverIP) closeSSHControlMaster(ctx.serverIP)
}() }()
start := time.Now() var start time.Time
binaryPath := filepath.Join(ctx.serviceDir, "pocketbase") binaryPath := filepath.Join(ctx.serviceDir, "pocketbase")
exists, err := remoteBinaryExists(ctx.serverIP, binaryPath) exists, err := remoteBinaryExists(ctx.serverIP, binaryPath)
@@ -1094,9 +1094,12 @@ func runDeploy() error {
if err != nil { if err != nil {
return err return err
} }
start = time.Now()
if err := performSetup(ctx); err != nil { if err := performSetup(ctx); err != nil {
return err return err
} }
} else {
start = time.Now()
} }
dirs := []string{"pb_public", "pb_migrations", "pb_hooks"} dirs := []string{"pb_public", "pb_migrations", "pb_hooks"}