fix: do not delete the existing procfile if it does not exist
This commit is contained in:
1 parent
231e562b8d
commit
0857e51c43
1 file changed
+4
-2
@@ -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