ruby-on-rails - 使用 Rails 进行 AWS 部署 - .ebextensions 中的配置文件

标签 ruby-on-rails postgresql amazon-web-services amazon-elastic-beanstalk yum

我在 .ebextensions/packages.config 中有一个配置文件。

packages: 
  yum:
    postgresql-devel: []

当我在 AWS ElacticBeanstalk 上部署时,出现此错误:

[Instance: i-195762fc Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on instance. Return code: 1 Output: [CMD-AppDeploy/AppDeployStage0/EbExtensionPreBuild] command failed with error code 1: Error occurred during build: Yum does not have postgresql-devel available for installation.

如果您知道我所犯的错误,我将不胜感激。

谢谢。

最佳答案

你需要用postgresql 92-devel或postgresql 93-devel替换postgresql-devel

关于ruby-on-rails - 使用 Rails 进行 AWS 部署 - .ebextensions 中的配置文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26722085/

相关文章:

linux - 如何从 S3 存储桶中已上传的 VMDK 镜像创建实例

python - Django如何自定义表名和外键字段

sql - Postgres 中没有子查询的总计算百分比

postgresql - Postgres : Using dblink to make remote connection

amazon-web-services - 使用 BG96 和 MQTT 协议(protocol)将数据发布到 aws IoT 时出错

ruby-on-rails - Rails CSRF 保护 + Angular.js : protect_from_forgery makes me to log out on POST

ruby-on-rails - Resque:我如何只对一个特定的队列使用特定的工作人员

ruby-on-rails - ruby 检查文件是否实际被修改的最佳方法是什么?

ruby-on-rails - 目录 : How to load the related record in a one-to-one relationship

amazon-web-services - AWS Lambda 的源代码控制和部署