以下の様な状況になっており、pushができない状態です。
remote: -----> Ruby app detected remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.5.1 remote: -----> Installing dependencies using bundler 2.0.1 remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment remote: /tmp/build_62fe3ea70823e2b072b728cbe9fd30fb/vendor/ruby-2.5.1/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) remote: from /tmp/build_62fe3ea70823e2b072b728cbe9fd30fb/vendor/ruby-2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path' remote: from vendor/bundle/ruby/2.5.0/bin/bundle:23:in `<main>' remote: Bundler Output: /tmp/build_62fe3ea70823e2b072b728cbe9fd30fb/vendor/ruby-2.5.1/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) remote: from /tmp/build_62fe3ea70823e2b072b728cbe9fd30fb/vendor/ruby-2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path' remote: from vendor/bundle/ruby/2.5.0/bin/bundle:23:in `<main>' remote: remote: ! remote: ! Failed to install gems via Bundler. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote:
試したこと
BUndlerのバージョンに問題があるのではないかと思い
https://qiita.com/JFCheval/items/91ba766b63878ff80d23
https://stackoverflow.com/questions/4574176/heroku-push-rejected-failed-to-install-gems-via-bundler
に書いてあることをやってみましたが、うまく行きませんでした。