質問編集履歴

5

タグの変更

2020/12/03 18:10

投稿

harunyan7
harunyan7

スコア1

test CHANGED
File without changes
test CHANGED
File without changes

4

試したことの修正

2020/12/03 18:10

投稿

harunyan7
harunyan7

スコア1

test CHANGED
File without changes
test CHANGED
@@ -98,7 +98,9 @@
98
98
 
99
99
 
100
100
 
101
- **・heroku restart -a アプリ名でリセットする**
101
+ **・application.cssをapplication.css.scssに変更する**
102
+
103
+ 記載した同じエラーが出る
102
104
 
103
105
 
104
106
 

3

試したことの追記

2020/12/03 07:02

投稿

harunyan7
harunyan7

スコア1

test CHANGED
File without changes
test CHANGED
@@ -98,7 +98,11 @@
98
98
 
99
99
 
100
100
 
101
+ **・heroku restart -a アプリ名でリセットする**
102
+
103
+
104
+
101
- **application.cssをapplication.css.scssに変更する**
105
+ **production.rbのconfig.assets.compile = false を true に変る**
102
106
 
103
107
  記載した同じエラーが出る
104
108
 

2

エラー内容追加、CSS編集内容追記

2020/12/03 06:59

投稿

harunyan7
harunyan7

スコア1

test CHANGED
File without changes
test CHANGED
@@ -36,15 +36,27 @@
36
36
 
37
37
  remote: !
38
38
 
39
+ remote: ! Push rejected, failed to compile Ruby app.
39
40
 
41
+ remote:
40
42
 
41
-
43
+ remote: ! Push failed
42
44
 
45
+ remote: Verifying deploy...
43
46
 
47
+ remote:
48
+
49
+ remote: ! Push rejected to アプリ名.
50
+
51
+ remote:
52
+
53
+ To https://git.heroku.com/アプリ名.git
44
54
 
45
55
  ! [remote rejected] main -> main (pre-receive hook declined)
46
56
 
47
- error: failed to push some refs to 'https://git.heroku.com/アプリ名
57
+ error: failed to push some refs to 'https://git.heroku.com/アプリ名.git'
58
+
59
+
48
60
 
49
61
  ```
50
62
 
@@ -86,6 +98,30 @@
86
98
 
87
99
 
88
100
 
101
+ **application.cssをapplication.css.scssに変更する**
102
+
103
+ 記載した同じエラーが出る
104
+
105
+
106
+
107
+ ### style.css編集内容
108
+
109
+
110
+
111
+ background-image: url('ファイル名.png');
112
+
113
+  ↓
114
+
115
+ background-image: image-url('ファイル名.png');
116
+
117
+
118
+
119
+
120
+
121
+ その他不要なCSSファイルを削除しました
122
+
123
+
124
+
89
125
 
90
126
 
91
127
  ### 補足説明

1

初心者マークのつけ忘れ、タイトルの変更、コードの記述

2020/12/03 05:32

投稿

harunyan7
harunyan7

スコア1

test CHANGED
@@ -1 +1 @@
1
- error: failed to push some refs to が解決ません
1
+ herokuにデプロイするとerror: failed to push some refs to が出ますが、解決できません
test CHANGED
@@ -28,6 +28,8 @@
28
28
 
29
29
 
30
30
 
31
+ ```ターミナル
32
+
31
33
  remote: !
32
34
 
33
35
  remote: ! Precompiling assets failed.
@@ -44,7 +46,7 @@
44
46
 
45
47
  error: failed to push some refs to 'https://git.heroku.com/アプリ名
46
48
 
47
-
49
+ ```
48
50
 
49
51
 
50
52