【问题标题】:Node.js deploy - AWS Elastic BeanstalkNode.js 部署 - AWS Elastic Beanstalk
【发布时间】:2014-12-25 15:26:36
【问题描述】:

伙计们。

我刚刚开始学习如何使用 AWS Elastic Beanstalk 部署节点 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.

并且没有返回任何 URL。

在网络面板中,我在日志条目中有以下内容:

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

可能发生了什么?我是 AWS 技术的初学者,我完全迷路了!以下是最后 100 行日志:http://pastebin.com/r2wDUP1L

它似乎在尝试 npm install express 时崩溃了...有人可以帮帮我吗?

【问题讨论】:

    标签: node.js amazon-web-services amazon-elastic-beanstalk


    【解决方案1】:

    对于任何感兴趣的人,问题是没有安装 GIT。

    我能够使用 Amazon ebextensions 安装 git 来管理需要部署的包,然后只需 git aws.push。一切顺利!

    【讨论】:

    • git aws.push 在 EB 命令行中不再可用。我经常遇到这个错误,你有什么建议吗?
    • @andrewoodleyjr 我建议您生成日志并查看错误可能来自何处。就我而言,它是 GIT,但对你来说可能完全不同。
    • 谢谢,我找到了问题。它是端口号(正确为 8081)并正确更新了 git commit(使用 git commit -a -m '' )。之后我用 eb deploy 上传,它工作正常。
    猜你喜欢
    • 2015-09-20
    • 2020-08-02
    • 2017-04-11
    • 2015-12-15
    • 2014-05-26
    • 1970-01-01
    • 2019-12-17
    • 2015-07-28
    • 2019-11-22
    相关资源
    最近更新 更多