git push heroku master のエラー
MacBook-Pro art % git push heroku master
Enumerating objects: 8325, done.
Counting objects: 100% (8325/8325), done.
Delta compression using up to 8 threads
Compressing objects: 100% (6818/6818), done.
Writing objects: 100% (8325/8325), 40.27 MiB | 5.17 MiB/s, done.
Total 8325 (delta 1149), reused 8104 (delta 1015)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-18 stack
remote: -----> Determining which buildpack to use for this app
remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: Ruby,Node.js
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.2.11
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.6.6
remote: -----> Installing dependencies using bundler 2.2.11
remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
remote: Your bundle only supports platforms ["x86_64-darwin-20"] but your local platform
remote: is x86_64-linux. Add the current platform to the lockfile with bundle lock
and try again.
remote: --add-platform x86_64-linux
remote: Bundler Output: Your bundle only supports platforms ["x86_64-darwin-20"] but your local platform
remote: is x86_64-linux. Add the current platform to the lockfile with bundle lock
and try again.
remote: --add-platform x86_64-linux
remote:
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: !
remote: ! ## Warning - The same version of this code has already been built: 7c0beb0381753dff088f9ccb20855d5da9e5bdbd
remote: !
remote: ! We have detected that you have triggered a build from source code with version 7c0beb0381753dff088f9ccb20855d5da9e5bdbd
remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote: !
remote: ! If you are developing on a branch and deploying via git you must run:
remote: !
remote: ! git push heroku :main
remote: !
remote: ! This article goes into details on the behavior:
remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to neirart.
remote:
To https://git.heroku.com/neirart.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/neirart.git'
上記エラー文の
bundle lock --add-platform x86_64-linuxと
git push heroku :mainのエラーメッセージを実行してもなりません。
わかる方がいたら宜しくお願いします。