ruby-on-rails - Ruby on Rails API 不会部署在 Amazon Elastic Beanstalk 上。找不到 gem 文件
问题描述
我目前正在尝试将 Rails API 部署到 Elastic Beanstalk 上。由于找不到 gemfile,它不会部署。请参阅下面的注销:
[INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0",
"results":[{"status":"FAILURE","msg":"Engine execution has encountered
an error.","returncode":1,"events":[{"msg":"Instance deployment:
You didn't include a 'Gemfile' in your source bundle. The deployment
didn't install any Ruby gems.","timestamp":1601055941,"severity":"INFO"},
{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1601055944,"severity":"ERROR"}]}]}
我曾尝试bundle package
在终端中使用缓存 gem 文件vendor/bundle
,但它仍然无法正常工作。
有人有想法么?
解决方案
推荐阅读
- sql - Rails 使用 join 提取和排序数据
- scala - 在scala DataFrame中的单行中查找不同列的最大值
- android - 如何在 Android Studio 中为不同风格添加多个自适应图标
- android - R8:无法约束类型:@Nullable androidx.transition.ViewGroupUtilsApi14 {} 用于值:v3 通过约束:INT
- java - 如何使用 Java 程序跳过 MySql 数据库中的前 n 行?
- ballerina - Ballerina-Composer 可以与 Ballerina V 1.0 一起使用吗?
- ubuntu - 如何在 Ubuntu 服务器 18.04(在树莓派上)上建立网桥 ethernet-wlan?
- java - 如何在本地导入库而不在 Maven 中使用 Nexus?
- javascript - 如何知道服务器端是否加载了 JS 文件?
- three.js - Three.js 隐藏径向线段