質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Q&A

解決済

1回答

3139閲覧

herokuへデプロイ時の「Failed to install gems via Bundler.」エラー

nashi

総合スコア33

Ruby on Rails 5

Ruby on Rails 5は、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

0グッド

0クリップ

投稿2019/06/20 05:35

git push heroku master時、bundlerのバージョンを2.0.2にしろと言われたので確認してみると
2.0.1と2.0.2がインストールされていたので、2.0.1をアンインストールし
gemfile.lockを削除後bundle installを実行しました。

下のエラーはbundlerを2.0.2だけにした後のheroku logsですが
まだ2.0.1が使用されていると言われます。

文字数の関係上gemfile.lockが貼れません;
最下部のbundlerのバージョンは以下の通りです。
RUBY VERSION
ruby 2.5.1p57

BUNDLED WITH
2.0.2

デプロイ時のエラーについて結構調べましたが、解決に至っていません。
アドバイスよろしくお願いしますm(__)m

-----> Ruby app detected -----> Compiling Ruby/Rails       WARNING: This buildpack was created as a stop-gap measure to allow running applications with Bundler 2 on Heroku. Heroku now supports Bundler 2 directly: https://devcenter.heroku.com/changelog-items/1563 Please discontinue use of this buildpack and instead directly use the `heroku/ruby` buildpack. To remove this buildpack use the `heroku buildpacks` command to list your existing buildpacks. If you only have one buildpack listed you can run: heroku buildpacks:set heroku/ruby If you have multiple buildpacks, you'll need to add the buildpack to the correct location using `heroku buildpacks:add heroku/ruby -i <correct index>` and then remove this buildpack via: heroku buildpacks:remove https://github.com/bundler/heroku-buildpack-bundler2 -----> Using Ruby version: ruby-2.5.1 -----> Installing dependencies using bundler 2.0.1 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment Activating bundler (2.0.2) failed: Could not find 'bundler' (2.0.2) required by your /tmp/build_4654ba612f9a4ac866fef4c1e02758de/Gemfile.lock. To update to the latest version installed on your system, run `bundle update --bundler`. To install the missing version, run `gem install bundler:2.0.2` Checked in 'GEM_PATH=vendor/bundle/ruby/2.5.0', execute `gem env` for more information To install the version of bundler this project requires, run `gem install bundler -v '2.0.2'` Bundler Output: Activating bundler (2.0.2) failed: Could not find 'bundler' (2.0.2) required by your /tmp/build_4654ba612f9a4ac866fef4c1e02758de/Gemfile.lock. To update to the latest version installed on your system, run `bundle update --bundler`. To install the missing version, run `gem install bundler:2.0.2` Checked in 'GEM_PATH=vendor/bundle/ruby/2.5.0', execute `gem env` for more information To install the version of bundler this project requires, run `gem install bundler -v '2.0.2'` ! ! Failed to install gems via Bundler. ! ! Push rejected, failed to compile Ruby app. ! Push failed

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

無事解決しました。
落とします

投稿2019/06/21 07:31

nashi

総合スコア33

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問