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

質問編集履歴

3

元に戻しました

2021/08/29 13:49

投稿

YugoTokonami
YugoTokonami

スコア21

title CHANGED
@@ -1,1 +1,1 @@
1
- 質問は削除しました
1
+ 「git push heroku masterができない」続き
body CHANGED
@@ -1,2 +1,161 @@
1
+ ### git push heroku masterを行うとエラーになります
2
+ 前回と質問内容は同じなのですが、Gemfileを追加で添付しようと思ったのですが、文字数の上限だったそうで、前回の質問に添付することができなかったので、こちらにGemfileを添付します。
3
+ お手数をおかけしますが、こちらの質問もみていただけると幸いです。
4
+
5
+ ### 発生している問題・エラーメッセージ
6
+
7
+ ```
8
+ 「git push heroku masterができない」という質問がありますので、そちらを確認していただけると幸いです
9
+ ```
10
+
11
+ ### Gemfile
12
+
13
+ ```
14
+ source 'https://rubygems.org'
15
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
16
+
17
+ ruby '2.6.5'
18
+
19
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
20
+ gem 'rails', '~> 6.0.0'
21
+ # Use mysql as the database for Active Record
22
+ gem 'mysql2', '>= 0.4.4'
23
+ # Use Puma as the app server
24
+ gem 'puma', '~> 3.11'
25
+ # Use SCSS for stylesheets
26
+ gem 'sass-rails', '~> 5'
27
+ # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
28
+ gem 'webpacker', '~> 4.0'
29
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
30
+ gem 'turbolinks', '~> 5'
31
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
32
+ gem 'jbuilder', '~> 2.7'
33
+ # Use Redis adapter to run Action Cable in production
34
+ # gem 'redis', '~> 4.0'
35
+ # Use Active Model has_secure_password
36
+ # gem 'bcrypt', '~> 3.1.7'
37
+
38
+ # Use Active Storage variant
39
+ # gem 'image_processing', '~> 1.2'
40
+
41
+ # Reduces boot times through caching; required in config/boot.rb
42
+ gem 'bootsnap', '>= 1.4.2', require: false
43
+ group :development, :test do
44
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
45
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
46
+ gem 'rspec-rails', '~> 4.0.0'
47
+ gem 'factory_bot_rails'
48
+ gem 'faker'
49
+ end
50
+
51
+ group :development do
52
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
53
+ gem 'web-console', '>= 3.3.0'
54
+ gem 'listen', '>= 3.0.5', '< 3.2'
55
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
56
+ gem 'spring'
57
+ gem 'spring-watcher-listen', '~> 2.0.0'
58
+ end
59
+
60
+ group :test do
61
+ # Adds support for Capybara system testing and selenium driver
62
+ gem 'capybara', '>= 2.15'
63
+ gem 'selenium-webdriver'
64
+ # Easy installation and use of web drivers to run system tests with browsers
65
+ gem 'webdrivers'
66
+ end
67
+
68
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
69
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
70
+
71
+ gem 'devise'
72
+
73
+ gem 'mini_magick'
74
+ gem 'image_processing', '~> 1.2'
75
+
76
+ gem 'active_hash'
77
+ ```
78
+
79
+ ### 試したこと
80
+
81
+ heroku bundlerのバージョンが2.2.21だったので、このバージョンい合わせた。(2.1.4だったバージョンを)
82
+
83
+ ### 補足情報(FW/ツールのバージョンなど)
84
+
85
+ ```
86
+ yukahayuusatoru@TokonamugonoAir b_blog % git push heroku master
87
+ Enumerating objects: 67, done.
88
+ Counting objects: 100% (67/67), done.
89
+ Delta compression using up to 8 threads
90
+ Compressing objects: 100% (53/53), done.
91
+ Writing objects: 100% (54/54), 6.05 KiB | 1.21 MiB/s, done.
92
+ Total 54 (delta 37), reused 0 (delta 0), pack-reused 0
93
+ remote: Compressing source files... done.
94
+ remote: Building source:
95
+ remote:
96
+ remote: -----> Building on the Heroku-18 stack
97
+ remote: -----> Using buildpack: heroku/ruby
98
+ remote: -----> Ruby app detected
99
+ remote: -----> Installing bundler 2.2.21
100
+ remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
101
+ remote: -----> Compiling Ruby/Rails
102
+ remote: -----> Using Ruby version: ruby-2.6.5
103
+ remote: -----> Installing dependencies using bundler 2.2.21
104
+ remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
105
+ remote: Your bundle only supports platforms ["x86_64-darwin-20"] but your local platform
106
+ remote: is x86_64-linux. Add the current platform to the lockfile with `bundle lock
107
+ remote: --add-platform x86_64-linux` and try again.
108
+ remote: Bundler Output: Your bundle only supports platforms ["x86_64-darwin-20"] but your local platform
109
+ remote: is x86_64-linux. Add the current platform to the lockfile with `bundle lock
110
+ remote: --add-platform x86_64-linux` and try again.
111
+ remote:
112
+ remote: !
113
+ remote: ! Failed to install gems via Bundler.
114
+ remote: !
115
+ remote: ! Push rejected, failed to compile Ruby app.
116
+ remote:
117
+ remote: ! Push failed
118
+ remote: !
119
+ remote: ! ## Warning - The same version of this code has already been built: ee43c2151359d19a988bdfcd848456cef5d64254
120
+ remote: !
121
+ remote: ! We have detected that you have triggered a build from source code with version ee43c2151359d19a988bdfcd848456cef5d64254
122
+ remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
123
+ remote: !
124
+ remote: ! If you are developing on a branch and deploying via git you must run:
125
+ remote: !
126
+ remote: ! git push heroku <branchname>:main
127
+ remote: !
128
+ remote: ! This article goes into details on the behavior:
129
+ remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
130
+ remote:
131
+ remote: Verifying deploy...
132
+ remote:
133
+ remote: ! Push rejected to b-blog-36388.
134
+ remote:
135
+ To https://git.heroku.com/b-blog-36388.git
136
+ ! [remote rejected] master -> master (pre-receive hook declined)
137
+ error: failed to push some refs to 'https://git.heroku.com/b-blog-36388.git'
138
+ yukahayuusatoru@TokonamugonoAir b_blog %
139
+ ```
140
+
1
- ### この質問は削除ました
141
+ ### いエラー内容
142
+
143
+ ```
144
+ Sass::SyntaxError: wrong number of arguments (1 for 3) for `rgb'
145
+ ```
146
+
147
+ ```
148
+ ArgumentError: wrong number of arguments (1 for 3)
149
+ ```
150
+
151
+ ```
152
+ remote: !
153
+ remote: ! Precompiling assets failed.
154
+ remote: !
2
- この質問は、前回、前々回で質問した内容と同じであり、わかりづらい内容であったため、この質問は削除いたします。
155
+ remote: ! Push rejected, failed to compile Ruby app.
156
+ remote:
157
+ remote: ! Push failed
158
+ remote: Verifying deploy...
159
+ remote:
160
+ remote: ! Push rejected to b-blog-36388.
161
+ ```

2

質問を削除しました

2021/08/29 13:49

投稿

YugoTokonami
YugoTokonami

スコア21

title CHANGED
@@ -1,1 +1,1 @@
1
- 「git push heroku masterができない」続き2
1
+ 質問は削除しました
body CHANGED
@@ -1,86 +1,2 @@
1
- ### 先程出ていたエラー(bundlerのバージョン変更)は解決できた?のかと思うのですが、また新しいエラーが出てきてしまいました。そのエラー内容の解決策を教えていただけると幸いです
2
-
3
- ### エラー内容
4
-
5
- ```
6
- remote: Sass::SyntaxError: wrong number of arguments (1 for 3) for `rgb'
7
- remote: (sass):25
8
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/funcall.rb:311:in `reformat_argument_error'
9
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/funcall.rb:158:in `rescue in _perform'
10
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/funcall.rb:127:in `_perform'
11
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/node.rb:50:in `perform'
12
- 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'
13
- 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'
14
- 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'
15
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/script/tree/node.rb:50:in `perform'
16
- 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'
17
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `visit'
18
- 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'
19
- 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'
20
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:135:in `with_frame'
21
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `with_base'
22
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:158:in `visit'
23
- 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'
24
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:440:in `map'
25
- 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'
26
- 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'
27
- 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'
28
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `visit'
29
- 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'
30
- 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'
31
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:135:in `with_frame'
32
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/stack.rb:79:in `with_base'
33
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:158:in `visit'
34
- 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'
35
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:52:in `map'
36
- 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'
37
- 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'
38
- 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'
39
- 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'
40
- 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'
41
- 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'
42
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/base.rb:36:in `visit'
43
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:157:in `visit'
44
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/visitors/perform.rb:10:in `visit'
45
- 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'
46
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/tree/root_node.rb:20:in `render'
47
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:290:in `render'
48
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:48:in `call'
49
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:28:in `call'
50
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
51
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
52
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
53
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
54
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
55
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
56
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
57
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
58
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
59
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
60
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
61
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
62
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
63
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
64
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
65
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
66
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
67
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
68
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
69
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
70
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
71
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
72
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
73
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
74
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
75
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:67:in `block (3 levels) in define'
76
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
77
- remote: /tmp/build_530a75e2/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:66:in `block (2 levels) in define'
78
- remote:
79
-
80
- ```
81
-
82
- ### エラー仮説
1
+ ### 質問は削除しました
83
- 今回二つエラーが出てるのすが文字数制限関係でsyntaxError部分のみ添付しています。
2
+ 質問は、前回、前々回で質問した内容と同じであり、わかりづら内容あったため質問は削除たします。
84
- ArgumentErrorの部分は別の質問で添付します。
85
- syntaxErrorなので、どこかの文法が間違っている?のかと思います。
86
- 何回も質問して、申し訳ありませんが、どなたか教えていただけると幸いです。

1

誤字を直しました

2021/08/29 06:53

投稿

YugoTokonami
YugoTokonami

スコア21

title CHANGED
File without changes
body CHANGED
@@ -81,6 +81,6 @@
81
81
 
82
82
  ### エラーの仮説
83
83
  今回二つのエラーが出ているのですが、文字数制限の関係でsyntaxError部分のみ添付しています。
84
- ArgumentErrorの部分は別の質問で添付します。
84
+ ArgumentErrorの部分は別の質問で添付します。
85
- syntaxErrorなので、どこかの文法が間違っている?
85
+ syntaxErrorなので、どこかの文法が間違っている?のかと思います。
86
86
  何回も質問して、申し訳ありませんが、どなたか教えていただけると幸いです。