質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

1044閲覧

ruby heroku デプロイ Failed to install gems via Bundler.エラーが出る

MISIAN-MISIAN

総合スコア73

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2021/04/18 09:14

編集2021/04/18 13:20

heroku でデプロイしようとしたら
Failed to install gems via Bundler.
のエラーがでます。

ローカルのbundlerのversionは、bundler -vにて調べて変更して2.2.15にしました。
しかしgit push heroku masterしても同様のエラーが出て解決しません

ご教授のほどよろしくお願いします。

ターミナル remote: -----> Installing dependencies using bundler 2.2.15 remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4 remote: Your Gemfile lists the gem sqlite3 (>= 0) more than once. remote: You should probably keep only one of them. remote: Remove any duplicate entries and specify the gem only once. remote: While it's not a problem now, it could cause errors if you change the version of one of them later. remote: Fetching gem metadata from https://rubygems.org/............ remote: Your bundle is locked to mimemagic (0.3.3), but that version could not be found remote: in any of the sources listed in your Gemfile. If you haven't changed sources, remote: that means the author of mimemagic (0.3.3) has removed it. You'll need to update remote: your bundle to a version other than mimemagic (0.3.3) that hasn't been removed remote: in order to install. remote: Bundler Output: Your Gemfile lists the gem sqlite3 (>= 0) more than once. remote: You should probably keep only one of them. remote: Remove any duplicate entries and specify the gem only once. remote: While it's not a problem now, it could cause errors if you change the version of one of them later. remote: Fetching gem metadata from https://rubygems.org/............ remote: Your bundle is locked to mimemagic (0.3.3), but that version could not be found remote: in any of the sources listed in your Gemfile. If you haven't changed sources, remote: that means the author of mimemagic (0.3.3) has removed it. You'll need to update remote: your bundle to a version other than mimemagic (0.3.3) that hasn't been removed remote: in order to install. 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: e344d8d12487b25f1b4ff06e2b4de252b350f9b2 remote: ! remote: ! We have detected that you have triggered a build from source code with version e344d8d12487b25f1b4ff06e2b4de252b350f9b2 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 <branchname>: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 secure-basin-73333. remote: To https://git.heroku.com/secure-basin-73333.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/secure-basin-73333.git' kobayashi-no-MacBook-Air:ryuta MISIAN$ bundler -v Bundler version 2.2.15

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

bundlerというよりGemfileに問題がありそうに思いました。

mimemagic問題
mimemagic問題

Your Gemfile lists the gem sqlite3 (>= 0) more than once.

You should probably keep only one of them.

のグーグル翻訳がこちら

Gemfileは、gem sqlite3(> = 0)を複数回リストします。

おそらくそのうちの1つだけを保持する必要があります。

投稿2021/04/18 14:21

編集2021/04/18 14:22
yaha4967

総合スコア106

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問