Search code examples
herokuforemanprocfile

unable to parse Procfile


I am trying to deploy an Heroku app.

I must be doing something wrong with the Procfile. When I run foreman check I get this error.

ERROR: no processes defined

I get pretty much the same thing when deploying on Heroku

-----> Building runtime environment
-----> Discovering process types

 !     Push failed: cannot parse Procfile.

The Procfile looks like this

web: node app.js

What did I miss?


update I re-did all from the start, It works properly now. I think I might have issue with Unix line ending


Solution

  • Is your Procfile in the root of your project? Is it spelled with a capital P? Does it have unix line endings?