前提・実現したいこと
rails tutorial を写経して2章の最後(scaffold)までやったけど、herokuにデプロイしようとするとエラーが出る。
発生している問題・エラーメッセージ
! ! Could not detect rake tasks ! ensure you can run `$ bundle exec rake -P` against your app ! and using the production group of your Gemfile. ! Activating bundler (< 2) failed: ! Could not find 'bundler' (< 2) - did find: [bundler-2.0.1] ! Checked in 'GEM_PATH=vendor/bundle/ruby/2.4.0', execute `gem env` for more information ! ! To install the version of bundler this project requires, run `gem install bundler -v '< 2'` ! /app/tmp/buildpacks/19b20846a186a4065aa6710b809d0c465ff7a2235264402d06b5038f9562c56867a32c308dd2410d96108925a9f9fed74b5ef871dd6514a3a3a5485da3f442cf/lib/language_pack/helpers/rake_runner.rb:106:in `load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError) ensure you can run `$ bundle exec rake -P` against your app and using the production group of your Gemfile. Activating bundler (< 2) failed: Could not find 'bundler' (< 2) - did find: [bundler-2.0.1] Checked in 'GEM_PATH=vendor/bundle/ruby/2.4.0', execute `gem env` for more information To install the version of bundler this project requires, run `gem install bundler -v '< 2'`
試したこと
sqlite3からpgに変更する部分は確認済みで、データベースの問題ではないのではないかなぁと。
あとはassetsのプリコンパイルがうんたらかんたらというページを見てプリコンパイルしてからcommit→pushしても変わらず…。
補足情報(FW/ツールのバージョンなど)
https://ancient-brook-14484.herokuapp.com/
https://github.com/nabe1005/try-rails-tutorial2.git
あなたの回答
tips
プレビュー