错误:Procfile不存在,并且启动Web进程时出现问题 [英] ERROR: Procfile does not exist, and problems starting web processes
问题描述
编辑: web:node web.js
是Procfile的内容,继续教程,所以我认为它是承诺...你可以检查教程,请告诉我,如果是这样吗?
Procfile不存在
错误。我的问题是我在文件中留下了'.txt'扩展名。一旦我删除了文件扩展名并运行了 foreman start
,它可以很好地工作,希望这可以帮助=) So, I'm currently following this tutorial: https://devcenter.heroku.com/articles/nodejs to start a simple Node.js app. I've got to the part where foreman is used to run the app locally (under Declaring process types with Procfile), and I'm getting an error telling me that the Procfile does not exist. My Procfile is in the same directory as my code, etc. All of the steps up till now have been fine. I skipped past this part in the tutorial to try and run the application on Heroku, but this line heroku ps:scale web=1
under Visit your application tells me that there is "No such type as web"... I'm using Windows to develop my app. Any help would be much appreciated. :-)
EDIT: web: node web.js
is the contents of the Procfile, and I'm following the tutorial so I assume it's being committed... could you check the tutorial please and tell me if it is?
I had also received the Procfile does not exist
error. The issue with mine was that I had left the '.txt' extension on the file. Once I removed the file extension and ran the foreman start
it worked perfectly, hope this help =)
这篇关于错误:Procfile不存在,并且启动Web进程时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!