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

質問編集履歴

5

タグの変更

2020/12/03 18:10

投稿

harunyan7
harunyan7

スコア1

title CHANGED
File without changes
body CHANGED
File without changes

4

試したことの修正

2020/12/03 18:10

投稿

harunyan7
harunyan7

スコア1

title CHANGED
File without changes
body CHANGED
@@ -48,7 +48,8 @@
48
48
  **・heroku restart -a アプリ名でリセットする**
49
49
  You do not have access to the app アプリ名 と出る
50
50
 
51
- **・heroku restart -a アプリ名でリセットする**
51
+ **・application.cssをapplication.css.scssに変更する**
52
+ 記載した同じエラーが出る
52
53
 
53
54
  **・production.rbのconfig.assets.compile = false を true に変える**
54
55
  記載した同じエラーが出る

3

試したことの追記

2020/12/03 07:02

投稿

harunyan7
harunyan7

スコア1

title CHANGED
File without changes
body CHANGED
@@ -48,7 +48,9 @@
48
48
  **・heroku restart -a アプリ名でリセットする**
49
49
  You do not have access to the app アプリ名 と出る
50
50
 
51
+ **・heroku restart -a アプリ名でリセットする**
52
+
51
- **application.cssをapplication.css.scssに変更する**
53
+ **・production.rbのconfig.assets.compile = false を true に変る**
52
54
  記載した同じエラーが出る
53
55
 
54
56
  ### style.css編集内容

2

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

2020/12/03 06:59

投稿

harunyan7
harunyan7

スコア1

title CHANGED
File without changes
body CHANGED
@@ -17,11 +17,17 @@
17
17
  remote: !
18
18
  remote: ! Precompiling assets failed.
19
19
  remote: !
20
+ remote: ! Push rejected, failed to compile Ruby app.
21
+ remote:
22
+ remote: ! Push failed
23
+ remote: Verifying deploy...
24
+ remote:
25
+ remote: ! Push rejected to アプリ名.
26
+ remote:
27
+ To https://git.heroku.com/アプリ名.git
28
+ ! [remote rejected] main -> main (pre-receive hook declined)
29
+ error: failed to push some refs to 'https://git.heroku.com/アプリ名.git'
20
30
 
21
-
22
-
23
- ! [remote rejected] main -> main (pre-receive hook declined)
24
- error: failed to push some refs to 'https://git.heroku.com/アプリ名
25
31
  ```
26
32
 
27
33
 
@@ -42,7 +48,19 @@
42
48
  **・heroku restart -a アプリ名でリセットする**
43
49
  You do not have access to the app アプリ名 と出る
44
50
 
51
+ **application.cssをapplication.css.scssに変更する**
52
+ 記載した同じエラーが出る
45
53
 
54
+ ### style.css編集内容
55
+
56
+ background-image: url('ファイル名.png');
57
+  ↓
58
+ background-image: image-url('ファイル名.png');
59
+
60
+
61
+ その他不要なCSSファイルを削除しました
62
+
63
+
46
64
  ### 補足説明
47
65
  ブランチを切り忘れたのでmain(マスターブランチ)で最後まで作成してます。
48
66
  そのためリモートリポジトリにはローカルリポジトリの内容が全て反映されています。

1

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

2020/12/03 05:32

投稿

harunyan7
harunyan7

スコア1

title CHANGED
@@ -1,1 +1,1 @@
1
- error: failed to push some refs to が解決ません
1
+ herokuにデプロイするとerror: failed to push some refs to が出ますが、解決できません
body CHANGED
@@ -13,6 +13,7 @@
13
13
 
14
14
  ### 発生している問題・エラーメッセージ
15
15
 
16
+ ```ターミナル
16
17
  remote: !
17
18
  remote: ! Precompiling assets failed.
18
19
  remote: !
@@ -21,9 +22,9 @@
21
22
 
22
23
  ! [remote rejected] main -> main (pre-receive hook declined)
23
24
  error: failed to push some refs to 'https://git.heroku.com/アプリ名
25
+ ```
24
26
 
25
27
 
26
-
27
28
  ### 試したこと
28
29
 
29
30
  **・git push origin :main でmainブランチにコミットの内容を反映**