質問編集履歴

3

元に戻しました

2021/08/29 13:57

投稿

YugoTokonami
YugoTokonami

スコア21

test CHANGED
@@ -1 +1 @@
1
- 質問は削除しました
1
+ 「git push heroku masterができない」続き
test CHANGED
@@ -1,3 +1,319 @@
1
+ ### git push heroku masterを行うとエラーになります
2
+
3
+ 前回と質問内容は同じなのですが、Gemfileを追加で添付しようと思ったのですが、文字数の上限だったそうで、前回の質問に添付することができなかったので、こちらにGemfileを添付します。
4
+
5
+ お手数をおかけしますが、こちらの質問もみていただけると幸いです。
6
+
7
+
8
+
9
+ ### 発生している問題・エラーメッセージ
10
+
11
+ 「git push heroku masterができない」という質問がありますので、そちらを確認していただけると幸いです
12
+
13
+
14
+
15
+ ### Gemfile
16
+
17
+ ```
18
+
19
+ source 'https://rubygems.org'
20
+
21
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
22
+
23
+
24
+
25
+ ruby '2.6.5'
26
+
27
+
28
+
29
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
30
+
31
+ gem 'rails', '~> 6.0.0'
32
+
33
+ # Use mysql as the database for Active Record
34
+
35
+ gem 'mysql2', '>= 0.4.4'
36
+
37
+ # Use Puma as the app server
38
+
39
+ gem 'puma', '~> 3.11'
40
+
41
+ # Use SCSS for stylesheets
42
+
43
+ gem 'sass-rails', '~> 5'
44
+
45
+ # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
46
+
47
+ gem 'webpacker', '~> 4.0'
48
+
49
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
50
+
51
+ gem 'turbolinks', '~> 5'
52
+
53
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
54
+
55
+ gem 'jbuilder', '~> 2.7'
56
+
57
+ # Use Redis adapter to run Action Cable in production
58
+
59
+ # gem 'redis', '~> 4.0'
60
+
61
+ # Use Active Model has_secure_password
62
+
63
+ # gem 'bcrypt', '~> 3.1.7'
64
+
65
+
66
+
67
+ # Use Active Storage variant
68
+
69
+ # gem 'image_processing', '~> 1.2'
70
+
71
+
72
+
73
+ # Reduces boot times through caching; required in config/boot.rb
74
+
75
+ gem 'bootsnap', '>= 1.4.2', require: false
76
+
77
+
78
+
79
+ group :development, :test do
80
+
81
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
82
+
83
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
84
+
85
+ gem 'rspec-rails', '~> 4.0.0'
86
+
87
+ gem 'factory_bot_rails'
88
+
89
+ gem 'faker'
90
+
91
+ end
92
+
93
+
94
+
95
+ group :development do
96
+
97
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
98
+
99
+ gem 'web-console', '>= 3.3.0'
100
+
101
+ gem 'listen', '>= 3.0.5', '< 3.2'
102
+
103
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
104
+
105
+ gem 'spring'
106
+
107
+ gem 'spring-watcher-listen', '~> 2.0.0'
108
+
109
+ end
110
+
111
+
112
+
113
+ group :test do
114
+
115
+ # Adds support for Capybara system testing and selenium driver
116
+
117
+ gem 'capybara', '>= 2.15'
118
+
119
+ gem 'selenium-webdriver'
120
+
121
+ # Easy installation and use of web drivers to run system tests with browsers
122
+
123
+ gem 'webdrivers'
124
+
125
+ end
126
+
127
+
128
+
129
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
130
+
131
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
132
+
133
+
134
+
135
+ gem 'devise'
136
+
137
+
138
+
139
+ gem 'mini_magick'
140
+
141
+ gem 'image_processing', '~> 1.2'
142
+
143
+
144
+
145
+ gem 'active_hash'
146
+
147
+ ```
148
+
149
+
150
+
151
+ ### 試したこと
152
+
153
+ heroku bundlerのバージョンが2.2.21だったので、このバージョンい合わせた。(2.1.4だったバージョンを)
154
+
155
+
156
+
157
+ ### 補足情報(FW/ツールのバージョンなど)
158
+
159
+ 質問が二つになってしまい申し訳ありません。ですが、本当に自分の力だけでは解決ができません。
160
+
161
+ 解決策を教えていただけると幸いです。
162
+
163
+
164
+
1
- ### 質問は削除しました。
165
+ ### 現状エラーの内容
166
+
2
-
167
+ ```
168
+
169
+ yukahayuusatoru@TokonamugonoAir b_blog % git push heroku master
170
+
171
+ Enumerating objects: 67, done.
172
+
173
+ Counting objects: 100% (67/67), done.
174
+
175
+ Delta compression using up to 8 threads
176
+
177
+ Compressing objects: 100% (53/53), done.
178
+
179
+ Writing objects: 100% (54/54), 6.05 KiB | 1.21 MiB/s, done.
180
+
3
- この質問は、前回、前々回の質問と同じ内容になってしまい、わかりづらい内容になってしまったので、削除いたします。
181
+ Total 54 (delta 37), reused 0 (delta 0), pack-reused 0
182
+
183
+ remote: Compressing source files... done.
184
+
185
+ remote: Building source:
186
+
187
+ remote:
188
+
189
+ remote: -----> Building on the Heroku-18 stack
190
+
191
+ remote: -----> Using buildpack: heroku/ruby
192
+
193
+ remote: -----> Ruby app detected
194
+
195
+ remote: -----> Installing bundler 2.2.21
196
+
197
+ remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
198
+
199
+ remote: -----> Compiling Ruby/Rails
200
+
201
+ remote: -----> Using Ruby version: ruby-2.6.5
202
+
203
+ remote: -----> Installing dependencies using bundler 2.2.21
204
+
205
+ remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
206
+
207
+ remote: Your bundle only supports platforms ["x86_64-darwin-20"] but your local platform
208
+
209
+ remote: is x86_64-linux. Add the current platform to the lockfile with `bundle lock
210
+
211
+ remote: --add-platform x86_64-linux` and try again.
212
+
213
+ remote: Bundler Output: Your bundle only supports platforms ["x86_64-darwin-20"] but your local platform
214
+
215
+ remote: is x86_64-linux. Add the current platform to the lockfile with `bundle lock
216
+
217
+ remote: --add-platform x86_64-linux` and try again.
218
+
219
+ remote:
220
+
221
+ remote: !
222
+
223
+ remote: ! Failed to install gems via Bundler.
224
+
225
+ remote: !
226
+
227
+ remote: ! Push rejected, failed to compile Ruby app.
228
+
229
+ remote:
230
+
231
+ remote: ! Push failed
232
+
233
+ remote: !
234
+
235
+ remote: ! ## Warning - The same version of this code has already been built: ee43c2151359d19a988bdfcd848456cef5d64254
236
+
237
+ remote: !
238
+
239
+ remote: ! We have detected that you have triggered a build from source code with version ee43c2151359d19a988bdfcd848456cef5d64254
240
+
241
+ remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
242
+
243
+ remote: !
244
+
245
+ remote: ! If you are developing on a branch and deploying via git you must run:
246
+
247
+ remote: !
248
+
249
+ remote: ! git push heroku <branchname>:main
250
+
251
+ remote: !
252
+
253
+ remote: ! This article goes into details on the behavior:
254
+
255
+ remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
256
+
257
+ remote:
258
+
259
+ remote: Verifying deploy...
260
+
261
+ remote:
262
+
263
+ remote: ! Push rejected to b-blog-36388.
264
+
265
+ remote:
266
+
267
+ To https://git.heroku.com/b-blog-36388.git
268
+
269
+ ! [remote rejected] master -> master (pre-receive hook declined)
270
+
271
+ error: failed to push some refs to 'https://git.heroku.com/b-blog-36388.git'
272
+
273
+ yukahayuusatoru@TokonamugonoAir b_blog %
274
+
275
+ ```
276
+
277
+
278
+
279
+ ### 新しいエラー内容
280
+
281
+
282
+
283
+ ```
284
+
285
+ Sass::SyntaxError: wrong number of arguments (1 for 3) for `rgb'
286
+
287
+ ```
288
+
289
+
290
+
291
+ ```
292
+
293
+ ArgumentError: wrong number of arguments (1 for 3)
294
+
295
+ ```
296
+
297
+
298
+
299
+ ```
300
+
301
+ remote: !
302
+
303
+ remote: ! Precompiling assets failed.
304
+
305
+ remote: !
306
+
307
+ remote: ! Push rejected, failed to compile Ruby app.
308
+
309
+ remote:
310
+
311
+ remote: ! Push failed
312
+
313
+ remote: Verifying deploy...
314
+
315
+ remote:
316
+
317
+ remote: ! Push rejected to b-blog-36388.
318
+
319
+ ```

2

質問を削除しました。

2021/08/29 13:57

投稿

YugoTokonami
YugoTokonami

スコア21

test CHANGED
@@ -1 +1 @@
1
- 「git push heroku masterができない」続き2(中編)
1
+ 質問は削除しました
test CHANGED
@@ -1,105 +1,3 @@
1
- ### 二つに分けると言っていましたが、三つに分けることになりそうです申し訳ございません
1
+ ### この質問は削除しました。
2
2
 
3
- ### エラー内容
4
-
5
-
6
-
7
- ```
8
-
9
- remote: Caused by:
10
-
11
- remote: ArgumentError: wrong number of arguments (1 for 3)
12
-
13
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/functions.rb:654:in `rgb'
14
-
15
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/funcall.rb:151:in `block in _perform'
16
-
17
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:108:in `block in with_function'
18
-
19
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:135:in `with_frame'
20
-
21
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:108:in `with_function'
22
-
23
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/funcall.rb:149:in `_perform'
24
-
25
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/node.rb:50:in `perform'
26
-
27
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/list_literal.rb:75:in `block in _perform'
28
-
29
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/list_literal.rb:75:in `map'
30
-
31
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/list_literal.rb:75:in `_perform'
32
-
33
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/node.rb:50:in `perform'
34
-
35
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:398:in `visit_prop'
36
-
37
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `visit'
38
-
39
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:158:in `block in visit'
40
-
41
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `block in with_base'
42
-
43
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:135:in `with_frame'
44
-
45
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `with_base'
46
-
47
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:158:in `visit'
48
-
49
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:440:in `block (2 levels) in visit_rule'
50
-
51
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:440:in `map'
52
-
53
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:440:in `block in visit_rule'
54
-
55
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:179:in `with_environment'
56
-
57
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:438:in `visit_rule'
58
-
59
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `visit'
60
-
61
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:158:in `block in visit'
62
-
63
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `block in with_base'
64
-
65
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:135:in `with_frame'
66
-
67
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `with_base'
68
-
69
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:158:in `visit'
70
-
71
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:52:in `block in visit_children'
72
-
73
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:52:in `map'
74
-
75
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:52:in `visit_children'
76
-
77
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:167:in `block in visit_children'
78
-
79
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:179:in `with_environment'
80
-
81
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:166:in `visit_children'
82
-
83
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `block in visit'
84
-
85
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:186:in `visit_root'
86
-
87
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `visit'
88
-
89
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:157:in `visit'
90
-
91
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:10:in `visit'
92
-
93
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/root_node.rb:36:in `css_tree'
94
-
95
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/root_node.rb:20:in `render'
96
-
97
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:290:in `render'
98
-
99
- ```
100
-
101
- ArgumentErrorの内容はあまりわかりません。
102
-
103
- sintaxErrorとArgumentErrorが今回のエラーの原因かます。
3
+ この質問は、前、前々回質問同じ内容になってしまい、かりづらい内容になってしったので、削除いたします。
104
-
105
- どなたか助けていただけると幸いです。

1

エラー内容を修正しました(中途半端に切れてしまっているエラーがあったため)。

2021/08/29 06:56

投稿

YugoTokonami
YugoTokonami

スコア21

test CHANGED
File without changes
test CHANGED
@@ -96,8 +96,6 @@
96
96
 
97
97
  remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:290:in `render'
98
98
 
99
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/sass_com
100
-
101
99
  ```
102
100
 
103
101
  ArgumentErrorの内容はあまりわかりません。