首页 > 解决方案 > 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,但它仍然无法正常工作。

有人有想法么?

标签: ruby-on-railsamazon-web-servicesrubygemsamazon-elastic-beanstalk

解决方案


推荐阅读