2014-10-29 189 views
0

ey guys。Node.js deploy - AWS Elastic Beanstalk

我剛開始學習如何使用部署AWS彈性魔豆節點JS應用程序,我被困在這部分來自tutorial

From the directory where you created your local repository, type the following command: 

eb start 

Once the environment status is Green, AWS Elastic Beanstalk will output a URL for the application 

在過程結束時,我得到:

INFO Command execution completed on all instances. Summary: Successful: 0, Failed: 1. 

並沒有返回任何網址。

在Web面板我在日誌條目以下幾點:

ERROR Create environment operation is complete, but with errors. For more information, see troubleshooting documentation 

什麼可能發生?我是AWS技術的初學者,我完全迷失了!這裏是最後100行日誌:http://pastebin.com/r2wDUP1L

它似乎崩潰,而試圖npm安裝表達...有人可以幫助我,請嗎?

回答

1

對於任何有興趣的人來說,問題是沒有安裝GIT。

我能夠使用Amazon ebextensions安裝git來管理所需的軟件包進行部署,然後只是git aws.push。一切都奏效了!

+0

git aws.push不再可用於EB命令行。我經常遇到這個錯誤,你有什麼建議嗎? – andrewoodleyjr 2015-02-05 04:40:27

+0

@andrewoodleyjr我建議您生成一個日誌並查看錯誤可能來自哪裏。在我的情況下,它是GIT,但它可能是完全不同的東西。 – lucaswxp 2015-02-05 18:18:41

+0

謝謝,我發現了這個問題。這是端口號(正確到8081)和正確更新git commit(使用git commit -a -m'')。之後我用eb deploy進行了上傳並且工作。 – andrewoodleyjr 2015-02-06 23:24:08