前提・実現したいこと
ここに質問の内容を詳しく書いてください。
(例)PHP(CakePHP)で●●なシステムを作っています。
■■な機能を実装中に以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
HEROKUにRailsアプリをVagrantからpushする際にでるエラーが出て、pushできません。
該当のソースコード
remote:
1remote: -----> Compiling Ruby/Rails 2remote: -----> Using Ruby version: ruby-2.5.1 3remote: -----> Installing dependencies using bundler 2.0.1 4remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment 5remote: /tmp/build_5174a9293daa482a9f4e40b497803c72/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 6remote: from /tmp/build_5174a9293daa482a9f4e40b497803c72/vendor/ruby-2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path' 7remote: from vendor/bundle/ruby/2.5.0/bin/bundle:23:in `<main>' 8remote: Bundler Output: /tmp/build_5174a9293daa482a9f4e40b497803c72/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) 9remote: from /tmp/build_5174a9293daa482a9f4e40b497803c72/vendor/ruby-2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path' 10remote: from vendor/bundle/ruby/2.5.0/bin/bundle:23:in `<main>' 11remote: 12remote: ! 13remote: ! Failed to install gems via Bundler. 14remote: ! 15remote: ! Push rejected, failed to compile Ruby app. 16remote: 17remote: ! Push failed 18remote: Verifying deploy... 19 20ソースコード
試したこと
Rubyのバージョンがちがうせいでできないないのではないかと思い色々やっているのですが、一向に解決出来ないので、ご教示願いたいです。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
あなたの回答
tips
プレビュー