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
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。