fix: reference extracted Procfile
Rather than attempting to always extract the Procfile, reference the one that was extracted by the last deploy. This fixes issues where 'docker container cp' may fail intermittently for lord knows what reason. Closes #4083
This commit is contained in:
@@ -19,11 +19,7 @@ func canScaleApp(appName string) bool {
|
||||
return !common.FileExists(getScalefileExtractedPath(appName))
|
||||
}
|
||||
|
||||
func extractProcfile(appName, image string, procfilePath string) error {
|
||||
if err := removeProcfile(appName); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
func extractProcfile(appName, image string) error {
|
||||
destination := getProcfilePath(appName)
|
||||
common.CopyFromImage(appName, image, "Procfile", destination)
|
||||
if !common.FileExists(destination) {
|
||||
|
||||
Reference in New Issue
Block a user