工头说“意外的EOF”在2个不同地方的SAME节点应用之一中 [英] foreman says "unexpected EOF" in one of the SAME node app in 2 different places

查看:221
本文介绍了工头说“意外的EOF”在2个不同地方的SAME节点应用之一中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 directoryA 中有一个示例node.js应用程序。然后,我在该目录中做了 foreman start ,并且它工作正常。

后缀我将该应用程序复制到新位置并尝试从那里做 foreman start ,它没有工作......这就是我所做的:

  $ ########## foreman可以在目录A中正常工作########## 
$ pwd
you / cant / see / me / directoryA
$领班开始
22:28:30 web.1 |以pid开头80332
22:28:30 web.1 |听5000
^ C

$ ##########将同一个节点应用程序从directoryA复制到directoryB ##########
$ cd ..
$ cp -r ./directoryA ./directoryB
$ cd directoryB

$ ##########领班不工作in directoryB ##########
$ pwd
you / cant / see / me / directoryB
$ foreman start
22:27:28 web.1 |以pid开头80323
22:27:28 web.1 | sh:-c:第0行:寻找匹配时的意外EOF $'
22:27:28 web.1 | sh:-c:第1行:语法错误:文件的意外结束
22:27:28 web.1 |退出代码2
22:27:28 system |发送SIGTERM到所有进程
SIGTERM收到

这是同一个该死的应用程序...它是一个简单的helloworld express.js应用程序,如 https://devcenter.heroku.com/文章/工具入门与 - 的NodeJS。



我在这里做错了什么?

解决方案

我遇到了同样的错误。事实证明,我的路径包括Alex's Projects文件。工头窒息并死于亚历克斯的撇号。我将文件夹重命名为Alex Projects,并且它工作了AOK。我在这里找到了答案。



https://github.com/ddollar/foreman/issues/315


i have a sample node.js app in directoryA. Then i did foreman start in that directory and it worked fine.

afterwords i copied that app into a new location and tried doing foreman start from there, it didn't work... here is what i did:

$ ########## foreman works fine in directoryA ##########
$ pwd
you/cant/see/me/directoryA
$ foreman start
22:28:30 web.1  | started with pid 80332
22:28:30 web.1  | Listening on 5000
^C

$ ########## copy the same node app from directoryA to directoryB ##########
$ cd ..
$ cp -r ./directoryA ./directoryB
$ cd directoryB

$ ########## foreman doesn't work in directoryB ##########
$ pwd
you/cant/see/me/directoryB
$ foreman start
22:27:28 web.1  | started with pid 80323
22:27:28 web.1  | sh: -c: line 0: unexpected EOF while looking for matching `''
22:27:28 web.1  | sh: -c: line 1: syntax error: unexpected end of file
22:27:28 web.1  | exited with code 2
22:27:28 system | sending SIGTERM to all processes
SIGTERM received

it's the same damn app... it's a simple helloworld express.js app as showed in https://devcenter.heroku.com/articles/getting-started-with-nodejs.

What am i doing wrong here?

解决方案

I was getting the same error. It turns out my path included the file Alex's Projects . Foreman choke and died on the apostrophe in Alex's. I renamed the folder to Alex Projects and it worked AOK. I found the answer to this here.

https://github.com/ddollar/foreman/issues/315

这篇关于工头说“意外的EOF”在2个不同地方的SAME节点应用之一中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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