mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Merge pull request #4871 from dokku/4870-fix-procfile-remove
Do not error when default Procfile path does not exist when using a custom procfile-path
This commit is contained in:
@@ -40,8 +40,11 @@ func TriggerCorePostExtract(appName string, sourceWorkDir string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
if err := os.Remove(path.Join(sourceWorkDir, "Procfile")); err != nil {
|
||||
return fmt.Errorf("Unable to remove existing Procfile: %v", err.Error())
|
||||
defaultProcfilePath := path.Join(sourceWorkDir, "Procfile")
|
||||
if common.FileExists(defaultProcfilePath) {
|
||||
if err := os.Remove(defaultProcfilePath); err != nil {
|
||||
return fmt.Errorf("Unable to remove existing Procfile: %v", err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
fullProcfilePath := path.Join(sourceWorkDir, procfilePath)
|
||||
|
||||
Reference in New Issue
Block a user