This may happen if your procfile is misspelt, such as “procfile” or “ProcFile” etc. The file name should be “Procfile” (with a capital P).
sometimes changing the file name is not anough, because git wouldn’t spot the change. I had to delete the Procfile completely, then commit the change, than add it again with the right name, and then commit that again:
- remove your procfile
- git commit
- add a new procfile with the exact name “Procfile”
- commit again
git push heroku master
(ormain
– new heroku projects now usesmain
)
should work!