fix deploy start time counting
This commit is contained in:
5
main.go
5
main.go
@@ -1080,7 +1080,7 @@ func runDeploy() error {
|
||||
defer func() {
|
||||
closeSSHControlMaster(ctx.serverIP)
|
||||
}()
|
||||
start := time.Now()
|
||||
var start time.Time
|
||||
|
||||
binaryPath := filepath.Join(ctx.serviceDir, "pocketbase")
|
||||
exists, err := remoteBinaryExists(ctx.serverIP, binaryPath)
|
||||
@@ -1094,9 +1094,12 @@ func runDeploy() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
start = time.Now()
|
||||
if err := performSetup(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
start = time.Now()
|
||||
}
|
||||
|
||||
dirs := []string{"pb_public", "pb_migrations", "pb_hooks"}
|
||||
|
||||
Reference in New Issue
Block a user