2013-12-15 8 views
1

我也跟着在https://devcenter.heroku.com/articles/getting-started-with-nodejs教程獲取一個節點的應用程序並在Heroku上運行福爾曼說,在web.1文件意外結束 - 但我節點應用程序有沒有web.1文件

但在運行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) 
$ 

回答

1

我剛纔已經回答了這個問題在這裏。 foreman says "unexpected EOF" in one of the SAME node app in 2 different places 基本上,你的文件路徑中不能有任何撇號。 (你實際上必須重命名你的文件夾,所以他們不包含撇號。)這是一個工頭錯誤。 雖然,我會懷疑用於回覆你的雙文章。 :)我需要超過50的聲望,所以我可以開始發表評論!

+0

感謝兄弟.....我可以確定'撇號'後從命令行執行'pwd' ....愚蠢的錯誤。 –

0

這並不是說web.1文件存在,它是一個信息約web過程,這是從你的Procfile讀取。你Procfile應該類似於:

web: node app.js

+0

我的Procfile包含'網絡:節點web.js' –