質問するログイン新規登録

質問編集履歴

3

タイトル変更

2021/04/18 13:20

投稿

MISIAN-MISIAN
MISIAN-MISIAN

スコア73

title CHANGED
@@ -1,1 +1,1 @@
1
- ruby heroku デプロイ
1
+ ruby heroku デプロイ Failed to install gems via Bundler.エラーが出る
body CHANGED
File without changes

2

コードの修正

2021/04/18 13:20

投稿

MISIAN-MISIAN
MISIAN-MISIAN

スコア73

title CHANGED
File without changes
body CHANGED
@@ -12,13 +12,21 @@
12
12
  ターミナル
13
13
  remote: -----> Installing dependencies using bundler 2.2.15
14
14
  remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
15
+ remote: Your Gemfile lists the gem sqlite3 (>= 0) more than once.
16
+ remote: You should probably keep only one of them.
17
+ remote: Remove any duplicate entries and specify the gem only once.
18
+ remote: While it's not a problem now, it could cause errors if you change the version of one of them later.
15
19
  remote: Fetching gem metadata from https://rubygems.org/............
16
20
  remote: Your bundle is locked to mimemagic (0.3.3), but that version could not be found
17
21
  remote: in any of the sources listed in your Gemfile. If you haven't changed sources,
18
22
  remote: that means the author of mimemagic (0.3.3) has removed it. You'll need to update
19
23
  remote: your bundle to a version other than mimemagic (0.3.3) that hasn't been removed
20
24
  remote: in order to install.
25
+ remote: Bundler Output: Your Gemfile lists the gem sqlite3 (>= 0) more than once.
26
+ remote: You should probably keep only one of them.
27
+ remote: Remove any duplicate entries and specify the gem only once.
28
+ remote: While it's not a problem now, it could cause errors if you change the version of one of them later.
21
- remote: Bundler Output: Fetching gem metadata from https://rubygems.org/............
29
+ remote: Fetching gem metadata from https://rubygems.org/............
22
30
  remote: Your bundle is locked to mimemagic (0.3.3), but that version could not be found
23
31
  remote: in any of the sources listed in your Gemfile. If you haven't changed sources,
24
32
  remote: that means the author of mimemagic (0.3.3) has removed it. You'll need to update
@@ -28,6 +36,30 @@
28
36
  remote: !
29
37
  remote: ! Failed to install gems via Bundler.
30
38
  remote: !
39
+ remote: ! Push rejected, failed to compile Ruby app.
40
+ remote:
41
+ remote: ! Push failed
42
+ remote: !
43
+ remote: ! ## Warning - The same version of this code has already been built: e344d8d12487b25f1b4ff06e2b4de252b350f9b2
44
+ remote: !
45
+ remote: ! We have detected that you have triggered a build from source code with version e344d8d12487b25f1b4ff06e2b4de252b350f9b2
46
+ remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
47
+ remote: !
48
+ remote: ! If you are developing on a branch and deploying via git you must run:
49
+ remote: !
50
+ remote: ! git push heroku <branchname>:main
51
+ remote: !
52
+ remote: ! This article goes into details on the behavior:
53
+ remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
54
+ remote:
55
+ remote: Verifying deploy...
56
+ remote:
57
+ remote: ! Push rejected to secure-basin-73333.
58
+ remote:
59
+ To https://git.heroku.com/secure-basin-73333.git
60
+ ! [remote rejected] master -> master (pre-receive hook declined)
61
+ error: failed to push some refs to 'https://git.heroku.com/secure-basin-73333.git'
62
+ kobayashi-no-MacBook-Air:ryuta MISIAN$ bundler -v
63
+ Bundler version 2.2.15
31
64
 
32
-
33
65
  ```

1

言葉の修正

2021/04/18 12:44

投稿

MISIAN-MISIAN
MISIAN-MISIAN

スコア73

title CHANGED
File without changes
body CHANGED
@@ -2,11 +2,9 @@
2
2
  Failed to install gems via Bundler.
3
3
  のエラーがでます。
4
4
 
5
- 現在のbundlerのバージョンを確認しました。
6
- Bundler version 2.0.2でした。
7
- そしてGemfile.lockのBUNDLED WITHの記載とバージョンはあっていました。
8
5
 
6
+ ローカルのbundlerのversionは、bundler -vにて調べて変更して2.2.15にしました。
9
- けれど、エラーが出る原因はなんでょうか?
7
+ しかしgit push heroku masterしても同様のエラーが出て解決ません
10
8
 
11
9
  ご教授のほどよろしくお願いします。
12
10