【问题标题】:Configuring Ruby App on Elastic Beanstalk在 Elastic Beanstalk 上配置 Ruby 应用程序
【发布时间】:2013-11-25 07:35:31
【问题描述】:

我在 Elastic Beanstalk 上设置 Shopify Dashing ruby​​ 应用程序时遇到了一些问题。我们在 Heroku 上成功运行它,但希望将其转移到我们其余应用程序所在的 AWS。

问题: 我可以让它运行并加载基本应用程序,但没有数据加载并且控制台日志引发连接错误)。这可能是因为 /events 路由没有返回任何数据(尽管它确实返回了 200)

到目前为止我尝试过的事情:

  1. bundle --deployment 并向上推 vendor/bundle 文件夹
  2. .ebextension/ruby.config 中的命令变体基于此问题中的答案(要点):Elastic Beanstalk - Rails Deploy using Github Gems

我认为这是 json gem 的问题,因为这是我必须摆弄的一件事才能让它在 EB 上工作(将它添加到 gemfile 中:)

source 'https://rubygems.org'
gem 'dashing'
gem 'json'

此代码在本地和 Heroku 上运行,我使用的是通过“dashing start”生成的示例仪表板,所以我没有做任何自定义。

想法/想法?该应用程序当前正在运行(加载基本 HTML,但没有值,您将在 console.log 中看到错误): http://ch-dash.elasticbeanstalk.com/

【问题讨论】:

  • 我看到 Heroku 运行“bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment”。

标签: ruby amazon-elastic-beanstalk


【解决方案1】:

尝试使用elastic-beanstalk gem 进行打包和部署。注意从real-world example 部分生成的 .ebextensions 或包含的示例文件。它包含来自@gkop 的命令,使其在 eb 环境中更符合预期。

【讨论】:

    猜你喜欢
    • 2018-04-14
    • 2018-06-13
    • 2014-01-11
    • 2020-09-29
    • 2014-09-25
    • 2019-02-23
    • 2015-06-12
    • 1970-01-01
    • 2017-04-19
    相关资源
    最近更新 更多