$ git push heroku main
でプッシュしようとしても、しばらくロードした後、
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.1.4) failed:
remote: ! Could not find 'bundler' (2.1.4) required by your /tmp/build_d44822c1/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.1.4
remote: ! Checked in 'GEM_PATH=/tmp/build_d44822c1/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.1.4'
remote: !
というエラーが発生してしまい、デプロイできません。
環境は
os mac Big sur
ruby '2.6.3'
Gemfile.lockの最後の文が
BUNDLED WITH
2.1.4
となっているので、bundleのバージョンは2.1.4になってると思うのですが‥‥
エラー文
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.1.4) failed: remote: ! Could not find 'bundler' (2.1.4) required by your /tmp/build_7b10b0f3/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.1.4` remote: ! Checked in 'GEM_PATH=/tmp/build_7b10b0f3/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.1.4'` remote: !
Gemfile
1source 'https://rubygems.org' 2git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 4ruby '2.6.3' 5 6# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 7gem 'rails', '~> 6.0.3', '>= 6.0.3.4' 8# Use sqlite3 as the database for Active Record 9gem 'pg', '0.17.1' 10# Use Puma as the app server 11gem 'puma', '~> 4.1' 12# Use SCSS for stylesheets 13gem 'sass-rails', '>= 6' 14# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker 15gem 'webpacker', '~> 4.0' 16 17# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 18gem 'turbolinks', '~> 5' 19# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 20gem 'jbuilder', '~> 2.7' 21# Use Redis adapter to run Action Cable in production 22# gem 'redis', '~> 4.0' 23# Use Active Model has_secure_password 24# gem 'bcrypt', '~> 3.1.7' 25 26# Use Active Storage variant 27# gem 'image_processing', '~> 1.2' 28 29# Reduces boot times through caching; required in config/boot.rb 30gem 'bootsnap', '>= 1.4.2', require: false 31 32group :development, :test do 33 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 34 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 35end 36 37group :development do 38 # Access an interactive console on exception pages or by calling 'console' anywhere in the code. 39 gem 'web-console', '>= 3.3.0' 40 gem 'listen', '~> 3.2' 41 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 42 gem 'spring' 43 gem 'spring-watcher-listen', '~> 2.0.0' 44end 45 46group :test do 47 # Adds support for Capybara system testing and selenium driver 48 gem 'capybara', '>= 2.15' 49 gem 'selenium-webdriver' 50 # Easy installation and use of web drivers to run system tests with browsers 51 gem 'webdrivers' 52end 53 54# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 55gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 56 57gem 'devise' 58gem "refile", require: "refile/rails", github: 'manfe/refile' 59gem "refile-mini_magick" 60gem "bulma-rails" 61
こいつと1週間近く格闘しています。
herokuでデプロイできないのであれば、他の方法を考えるのですが、おすすめはありますか?
あなたの回答
tips
プレビュー