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() {
|
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"}
|
||||||
|
|||||||
Reference in New Issue
Block a user