質問編集履歴

3

タイトル変更

2021/04/18 13:20

投稿

MISIAN-MISIAN
MISIAN-MISIAN

スコア73

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

2

コードの修正

2021/04/18 13:20

投稿

MISIAN-MISIAN
MISIAN-MISIAN

スコア73

test CHANGED
File without changes
test CHANGED
@@ -26,6 +26,14 @@
26
26
 
27
27
  remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
28
28
 
29
+ remote: Your Gemfile lists the gem sqlite3 (>= 0) more than once.
30
+
31
+ remote: You should probably keep only one of them.
32
+
33
+ remote: Remove any duplicate entries and specify the gem only once.
34
+
35
+ remote: While it's not a problem now, it could cause errors if you change the version of one of them later.
36
+
29
37
  remote: Fetching gem metadata from https://rubygems.org/............
30
38
 
31
39
  remote: Your bundle is locked to mimemagic (0.3.3), but that version could not be found
@@ -38,7 +46,15 @@
38
46
 
39
47
  remote: in order to install.
40
48
 
49
+ remote: Bundler Output: Your Gemfile lists the gem sqlite3 (>= 0) more than once.
50
+
51
+ remote: You should probably keep only one of them.
52
+
53
+ remote: Remove any duplicate entries and specify the gem only once.
54
+
55
+ remote: While it's not a problem now, it could cause errors if you change the version of one of them later.
56
+
41
- remote: Bundler Output: Fetching gem metadata from https://rubygems.org/............
57
+ remote: Fetching gem metadata from https://rubygems.org/............
42
58
 
43
59
  remote: Your bundle is locked to mimemagic (0.3.3), but that version could not be found
44
60
 
@@ -58,7 +74,55 @@
58
74
 
59
75
  remote: !
60
76
 
77
+ remote: ! Push rejected, failed to compile Ruby app.
61
78
 
79
+ remote:
80
+
81
+ remote: ! Push failed
82
+
83
+ remote: !
84
+
85
+ remote: ! ## Warning - The same version of this code has already been built: e344d8d12487b25f1b4ff06e2b4de252b350f9b2
86
+
87
+ remote: !
88
+
89
+ remote: ! We have detected that you have triggered a build from source code with version e344d8d12487b25f1b4ff06e2b4de252b350f9b2
90
+
91
+ remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
92
+
93
+ remote: !
94
+
95
+ remote: ! If you are developing on a branch and deploying via git you must run:
96
+
97
+ remote: !
98
+
99
+ remote: ! git push heroku <branchname>:main
100
+
101
+ remote: !
102
+
103
+ remote: ! This article goes into details on the behavior:
104
+
105
+ remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
106
+
107
+ remote:
108
+
109
+ remote: Verifying deploy...
110
+
111
+ remote:
112
+
113
+ remote: ! Push rejected to secure-basin-73333.
114
+
115
+ remote:
116
+
117
+ To https://git.heroku.com/secure-basin-73333.git
118
+
119
+ ! [remote rejected] master -> master (pre-receive hook declined)
120
+
121
+ error: failed to push some refs to 'https://git.heroku.com/secure-basin-73333.git'
122
+
123
+ kobayashi-no-MacBook-Air:ryuta MISIAN$ bundler -v
124
+
125
+ Bundler version 2.2.15
62
126
 
63
127
 
64
128
 

1

言葉の修正

2021/04/18 12:44

投稿

MISIAN-MISIAN
MISIAN-MISIAN

スコア73

test CHANGED
File without changes
test CHANGED
@@ -6,15 +6,11 @@
6
6
 
7
7
 
8
8
 
9
- 現在のbundlerのバージョンを確認しました。
10
-
11
- Bundler version 2.0.2でした。
12
-
13
- そしてGemfile.lockのBUNDLED WITHの記載とバージョンはあっていました。
14
9
 
15
10
 
11
+ ローカルのbundlerのversionは、bundler -vにて調べて変更して2.2.15にしました。
16
12
 
17
- けれど、エラーが出る原因はなでしょうか?
13
+ しかしgit push heroku masterしても同様のエラーが出て解決しませ
18
14
 
19
15
 
20
16