Browse Source

Always use the heroku procfile buildpack with the heroku builder

Mohammed Nafees 4 years ago
parent
commit
e011e3b126
1 changed files with 5 additions and 0 deletions
  1. 5 0
      cli/cmd/pack/pack.go

+ 5 - 0
cli/cmd/pack/pack.go

@@ -4,6 +4,7 @@ import (
 	"context"
 	"context"
 	"fmt"
 	"fmt"
 	"path/filepath"
 	"path/filepath"
+	"strings"
 
 
 	"github.com/buildpacks/pack"
 	"github.com/buildpacks/pack"
 	"github.com/porter-dev/porter/api/types"
 	"github.com/porter-dev/porter/api/types"
@@ -46,5 +47,9 @@ func (a *Agent) Build(opts *docker.BuildOpts, buildConfig *types.BuildConfig) er
 		// FIXME: use all the config vars
 		// FIXME: use all the config vars
 	}
 	}
 
 
+	if strings.HasPrefix(buildOpts.Builder, "heroku") {
+		buildOpts.Buildpacks = append(buildOpts.Buildpacks, "heroku/procfile")
+	}
+
 	return client.Build(context, buildOpts)
 	return client.Build(context, buildOpts)
 }
 }