Cap production deploy failed error: could not locate gemfile on AWS server

Cap production deploy failed error: could not locate gemfile on AWS server

我正在通过 Capistrano 在 AWS ec2 实例上部署一个 rails 应用程序。 Cap production deploy:check 成功,但是当我 运行 cap production deploy 时出现错误。

有人能帮忙吗?

我发现了问题。你在项目中的 Gemfile 被命名为 "gemfile" SMALL g

必须是Gemfile。 所以 运行 在 Mac 和 Windows 上。但是当您部署到 Linux 时,它没有看到 Gemfile.Please 将项目中的 "gemfile" 重命名为 "Gemfile" 它会起作用。