Skip to content

Commit 6a26cd4

Browse files
committed
chore(builder): use Procfile in anywhere
1 parent 64d38b2 commit 6a26cd4

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

pkg/gitreceive/build.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,6 @@ func prettyPrintJSON(data interface{}) (string, error) {
305305

306306
func getProcfile(dirName string, stack map[string]string) (dryccAPI.ProcessType, error) {
307307
procfile := dryccAPI.ProcessType{}
308-
_, err := os.Stat(fmt.Sprintf("%s/project.toml", dirName))
309-
if err == nil || stack["name"] == "container" {
310-
return procfile, nil
311-
}
312308
if _, err := os.Stat(fmt.Sprintf("%s/Procfile", dirName)); err == nil {
313309
rawProcFile, err := ioutil.ReadFile(fmt.Sprintf("%s/Procfile", dirName))
314310
if err != nil {

0 commit comments

Comments
 (0)