问题
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
回答1:
Is your procfile in the root of your project? Is it spelled with a capital G? Does it have unix line endings?
回答2:
Just encounter "Push failed: cannot parse Procfile." on Windows. I can conclude that It IS "Windows-file format" problem, NOT the context of file itself.
make sure to create a clean file, maybe use Notepad++ or other advanced editor to check the file type.
回答3:
Open your current Procfile with notepad. Create a new Procfile.txt and paste the content of your original Procfile . Save your Procfile and replace it with your new Procfile
回答4:
save as a utf-8 character file, rather than what it is - a utf 16 character file. this is a confirmed fix.
来源:https://stackoverflow.com/questions/19846342/unable-to-parse-procfile