我按照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个不同位置的一个SAME节点应用程序中说“意外的EOF”本质上,文件路径中不能包含任何撇号。(实际上,您必须重命名文件夹,以便它们不包含撇号。)这是领班的错误。不过,我会为您的双重回答而表示怀疑。:)我需要获得50多个声誉,这样我才能开始发表评论!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句