Foreman在web.1文件中说意外的EOF - 但我的节点应用程序没有web.1文件

时间:2013-12-15 02:21:15

标签: heroku foreman heroku-toolbelt

我按照https://devcenter.heroku.com/articles/getting-started-with-nodejs上的教程来启动节点应用并在heroku中运行

但在运行foreman start之后,它说

$ foreman start
07:50:11 web.1  | started with pid 3041
07:50:11 web.1  | sh: -c: line 0: unexpected EOF while looking for matching `''
07:50:11 web.1  | sh: -c: line 1: syntax error: unexpected end of file
07:50:11 web.1  | exited with code 2
07:50:11 system | sending SIGTERM to all processes
SIGTERM received
$

这个web.1文件来自????

我还运行了以下内容:

$ foreman check
valid procfile detected (web)
$

2 个答案:

答案 0 :(得分:1)

我刚才在这里回答了这个问题。 foreman says "unexpected EOF" in one of the SAME node app in 2 different places 从本质上讲,您的文件路径中不能包含任何撇号。 (你实际上必须重命名文件夹,因此它们不包含撇号。)这是工头中的一个错误。 不过,我会因为回答你的双重帖而怀疑。 :)我需要获得超过50的声誉,所以我可以开始发表评论了!

答案 1 :(得分:0)

它没有说web.1文件存在,它是关于web进程的消息,它从您的Procfile中读取。您的Procfile应类似于:

web: node app.js

相关问题