首页 > 解决方案 > 无法将 Ruby on Rails 应用程序部署到 AWS,出现与“mini_racer”相关的错误

问题描述

使用“bundle exec cap production deploy”命令将我的应用程序部署到 AWS,我收到以下错误:

00:15 bundler:install
      01 /usr/local/rbenv/bin/rbenv exec bundle insta…
      01 Unable to find a spec satisfying mini_racer …
      01 lockfile is corrupted?
bundle exit status: 7 (SSHKit::Command::Failed)
bundle stdout: Nothing written
bundle stderr: Unable to find a spec satisfying mini_racer (>= 0) in the set. Perhaps the
lockfile is corrupted?

我检查并尝试了“mini_racer”的每个版本,但都遇到了同样的错误。有人可以帮忙吗?

以下是与我的问题相关的宝石。如果需要,我会添加更多信息。

谢谢你。

宝石文件

gem 'mini_racer', platforms: :ruby 

Gemfile.lock

mini_racer (0.3.0)
  libv8 (> 8.4)
  mini_racer
  pg (>= 0.18, < 2.0)

BUNDLED WITH
   2.2.20

标签: ruby-on-railsamazon-web-services

解决方案


我以前也有这个问题。所以刚刚使用 mini_racer 删除,决定在 docker 中安装 nodeJs。


推荐阅读