【问题标题】:Deploy yeoman node.js application to Elastic Beanstalk将 yeoman node.js 应用程序部署到 Elastic Beanstalk
【发布时间】:2013-12-15 20:46:13
【问题描述】:

我有一个使用 Yeoman 生成器开发的 NodeJS 应用程序,我正在尝试将其部署到 Elastic Beanstalk 实例。我对这个堆栈相当陌生,所以如果问题看起来很分散,我很抱歉。我能够使用此过程部署我的应用程序:http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_nodejs_express.html。然而,当我点击我的主页时,我只有一个空白的 Node 应用程序。我猜这是因为部署直接来自我的 Git 存储库,而我的 Grunt 构建过程尚未运行。有什么方法可以告诉 Elastic Beanstalk 在收到可部署文件后运行 Grunt build?

【问题讨论】:

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


    【解决方案1】:

    您需要设置 Grunt 以在 AWS 上使用部署挂钩运行。这是通过container commands 完成的。

    查看此答案:How to automatically restart delayed_job when deploying a rails project on Amazon Elastic Beanstalk?

    还有这篇相关的博文:http://junkheap.net/blog/2013/05/20/elastic-beanstalk-post-deployment-scripts/

    【讨论】:

      猜你喜欢
      • 2015-07-17
      • 2016-11-12
      • 2015-09-21
      • 2020-09-02
      • 2014-03-31
      • 2021-02-11
      • 2018-12-07
      • 2022-06-11
      • 1970-01-01
      相关资源
      最近更新 更多