起こっている問題
Ruby on Rails初心者です。
ローカルで作ったアプリケーションをHerokuへデプロイしようとしていますが、うまくいきません。
以下のサイトを参考に進めていましたが、
【初心者向け】railsアプリをherokuを使って確実にデプロイする方法【決定版】 - Qiita
$git push heroku master
をすると
remote: ! remote: ! Could not detect rake tasks remote: ! ensure you can run `$ bundle exec rake -P` against your app remote: ! and using the production group of your Gemfile. remote: ! Activating bundler (2.0.2) failed: remote: ! Could not find 'bundler' (2.0.2) required by your /tmp/build_1f0aa30fb3947a92d7be9d08eef04253/Gemfile.lock. remote: ! To update to the latest version installed on your system, run `bundle update --bundler`. remote: ! To install the missing version, run `gem install bundler:2.0.2` remote: ! Checked in 'GEM_PATH=/tmp/build_1f0aa30fb3947a92d7be9d08eef04253/vendor/bundle/ruby/2.6.0', execute `gem env` for more information remote: ! remote: ! To install the version of bundler this project requires, run `gem install bundler -v '2.0.2'` remote: !
といったエラーが出て実行できません。
試したこと
$ brew update && brew upgrade ruby-build $ rbenv install 2.6.3 $ rbenv local 2.6.3 $ gem install bundler -v 2.0.2 $ rm Gemfile.lock $ bundle install
herokuデプロイでエラー Could not detect rake tasks - Qiita
【heroku】railsをデプロイした時に出たエラー - ヤサゴリのプログラミングメモ帳
全く同じエラーが出たというサイトをいくつか見つけ、どのサイトでも「RubyとBundlerをアップデートすればいい」と出てきたので同じように試しましたが、全く同じエラーが出てしまいます。
バージョンを確認したところRubyは2.6.3、Bundlerは2.0.2になっています。
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/12/18 01:16