unable to parse Procfile

醉酒当歌 提交于 2020-02-21 11:55:03

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!