CLI Deploy

This commit is contained in:
2023-12-10 14:52:00 +08:00
parent c10dfd4c73
commit 5e59bfe912
11 changed files with 223 additions and 18 deletions

View File

@ -68,5 +68,9 @@ func (v *ProcessConfig) StartProcess() error {
}
func (v *ProcessConfig) StopProcess() error {
return v.Cmd.Process.Signal(os.Interrupt)
if v.Cmd != nil && v.Cmd.Process != nil {
return v.Cmd.Process.Signal(os.Interrupt)
} else {
return nil
}
}