0

Redmine を Heroku にデプロイしようとしていますが、うまくいきません

このエラーメッセージが表示されます

 You are trying to install in deployment mode after changing
   your Gemfile. Run `bundle install` elsewhere and add the
   updated Gemfile.lock to version control.
   You have added to the Gemfile:
   * capybara (~> 2.1.0)
   * selenium-webdriver
   * database_cleaner
   Bundler Output: You are trying to install in deployment mode after changing
   your Gemfile. Run `bundle install` elsewhere and add the
   updated Gemfile.lock to version control.

   You have added to the Gemfile:
   * capybara (~> 2.1.0)
   * selenium-webdriver
   * database_cleaner
!
!     Failed to install gems via Bundler.
!

!     Push rejected, failed to compile Ruby app

私はやり続けます

bundle install

しかし、それは何も変わりません。また、Gemfile.lock を削除して bundle install を再度実行しようとしましたが、成功しませんでした

4

1 に答える 1

0

これは私にも起こりました。これは、バンドルのインストール時にローカルで 1.9.3 よりも古い Ruby バージョンを使用し、Heroku が 2.0.0 を使用している場合に発生します。

RUBY_VERSION >= '1.9.3' の場合

gem "capybara", "~> 2.1.0"
gem "selenium-webdriver"

終わり

そのため、Ruby バージョンを更新するか、Gemfile からこの部分を削除するだけです。

これがあなたにとってもうまくいくことを願っています。

于 2014-04-17T22:32:18.600 に答える