fix: copy the specified Procfile into place at the earliest possibility

This commit is contained in:
Jose Diaz-Gonzalez
2021-07-10 01:32:57 -04:00
parent a4b024d6f9
commit a22391b7ad
7 changed files with 48 additions and 11 deletions

View File

@@ -21,7 +21,7 @@ func canScaleApp(appName string) bool {
func extractProcfile(appName, image string) error {
destination := getProcfilePath(appName)
common.CopyFromImage(appName, image, reportComputedProcfilePath(appName), destination)
common.CopyFromImage(appName, image, "Procfile", destination)
if !common.FileExists(destination) {
common.LogInfo1Quiet("No Procfile found in app image")
return nil