fix: do not delete the existing procfile if it does not exist
This commit is contained in:
@@ -35,8 +35,10 @@ func TriggerCorePostDeploy(appName string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := os.Remove(existingProcfile); err != nil {
|
||||
return err
|
||||
if common.FileExists(existingProcfile) {
|
||||
if err := os.Remove(existingProcfile); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user