错误:Procfile不存在,并且启动Web进程时出现问题 [英] ERROR: Procfile does not exist, and problems starting web processes

查看:136
本文介绍了错误:Procfile不存在,并且启动Web进程时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我现在正在学习本教程: https://devcenter.heroku.com/articles/ nodejs 启动一个简单的Node.js应用程序。我已经到了foreman用于在本地运行应用程序的部分(在使用Procfile声明进程类型下),并且出现错误,告诉我Procfile不存在。我的Procfile和我的代码在同一个目录中,等等。到现在为止的所有步骤都没有问题。我在本教程中跳过了这部分,尝试在Heroku上运行该应用程序,但是在访问您的应用程序时,此行显示code> heroku ps:scale web = 1 没有这种类型的网络...我使用Windows来开发我的应用程序。任何帮助将非常感激。 : - )



编辑: 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆