質問編集履歴

1

エラーログが長すぎて文字数制限が引っかかり、その他の情報が載せられなかったので、代わりにGithubへのリンクを置きました。

2019/09/29 06:05

投稿

sooryung
sooryung

スコア22

test CHANGED
File without changes
test CHANGED
@@ -1,150 +1,12 @@
1
1
  rails_adminを使っていて、Herokuにpushしようとすると、以下のエラーが出ます。
2
2
 
3
- ```
4
3
 
5
- ...
6
4
 
7
- 文字数制限のため`remote`省略)
5
+ エラーログはこちらです。長すぎて、teratailの文字数制限にかかってしまいます。
8
6
 
9
- Running: rake assets:precompile
7
+ https://github.com/tsunaton/ToDo/blob/master/for_teratail.txt
10
8
 
11
- rake aborted!
12
9
 
13
- NameError: uninitialized constant RailsAdmin/tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:74:in `block in load_missing_constant'
14
-
15
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache'
16
-
17
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:74:in `rescue in load_missing_constant'
18
-
19
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:56:in `load_missing_constant'
20
-
21
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/config/initializers/rails_admin.rb:1:in `<main>' /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load' /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
22
-
23
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:657:in `block in load_config_initializer'
24
-
25
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/notifications.rb:170:in `instrument' /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:656:in `load_config_initializer'
26
-
27
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:614:in `block (2 levels) in <class:Engine>'
28
-
29
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in `each'
30
-
31
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in `block in <class:Engine>'
32
-
33
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `instance_exec'
34
-
35
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `run'
36
-
37
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
38
-
39
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:in `each'
40
-
41
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:in `tsort_each_child'
42
-
43
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:60:in `run_initializers'
44
-
45
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:361:in `initialize!'
46
-
47
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/config/environment.rb:5:in `<main>'
48
-
49
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
50
-
51
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
52
-
53
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
54
-
55
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
56
-
57
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
58
-
59
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:337:in `require_environment!'
60
-
61
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:520:in `block in run_tasks_blocks'
62
-
63
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
64
-
65
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
66
-
67
- Caused by:
68
-
69
- NameError: uninitialized constant RailsAdmintmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `block in load_missing_constant'
70
-
71
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
72
-
73
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:57:in `load_missing_constant'
74
-
75
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/config/initializers/rails_admin.rb:1:in `<main>'
76
-
77
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
78
-
79
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
80
-
81
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:657:in `block in load_config_initializer'
82
-
83
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/notifications.rb:170:in `instrument'
84
-
85
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:656:in `load_config_initializer'
86
-
87
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:614:in `block (2 levels) in <class:Engine>'
88
-
89
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in `each'
90
-
91
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in `block in <class:Engine>'
92
-
93
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `instance_exec'
94
-
95
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `run'
96
-
97
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
98
-
99
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:in `each'
100
-
101
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:in `tsort_each_child'
102
-
103
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:60:in `run_initializers'
104
-
105
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:361:in `initialize!'
106
-
107
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/config/environment.rb:5:in `<main>'
108
-
109
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
110
-
111
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
112
-
113
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
114
-
115
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
116
-
117
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
118
-
119
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:337:in `require_environment!'
120
-
121
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:520:in `block in run_tasks_blocks'
122
-
123
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
124
-
125
- /tmp/build_8cd55930ea5f989a00e9a54a893633d0/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
126
-
127
- Tasks: TOP => environment
128
-
129
- (See full trace by running task with --trace)
130
-
131
- ! Precompiling assets failed
132
-
133
- ! Push rejected, failed to compile Ruby app.
134
-
135
- !Push failed
136
-
137
- Verifying deploy
138
-
139
- ! Push rejected to komo-service-staging.
140
-
141
- To https://git.heroku.com/komo-service-staging.git
142
-
143
- ! [remote rejected] master -> master (pre-receive hook declined)
144
-
145
- error: failed to push some refs to 'https://git.heroku.com/komo-service-staging.git'
146
-
147
- ```
148
10
 
149
11
  インストールは普通に`Gemfile`に`gem 'rails_admin'`を追加→`bundle install`を実行→`rails g rails_admin:install`を実行→エラーなし
150
12
 
@@ -166,4 +28,148 @@
166
28
 
167
29
 
168
30
 
31
+ 以下その他の関連あると思われるファイルです。
32
+
33
+
34
+
35
+ routes.rb⬇️
36
+
37
+ ```
38
+
39
+ Rails.application.routes.draw do
40
+
41
+ mount RailsAdmin::Engine => '/rails_admin', as: 'rails_admin'
42
+
43
+
44
+
45
+ namespace :admin do
46
+
47
+ ...
48
+
49
+ end
50
+
51
+ namespace :staff do
52
+
53
+ ...
54
+
55
+ end
56
+
57
+ ...
58
+
59
+ end
60
+
61
+ ```
62
+
63
+
64
+
65
+ config/environments/production.rb⬇️
66
+
67
+ ```
68
+
69
+ Rails.application.configure do
70
+
71
+ ...
72
+
73
+ config.assets.initialize_on_precompile = false
74
+
75
+ ...
76
+
77
+ end
78
+
79
+ ```
80
+
81
+
82
+
83
+ config/initializers/rails_admin.rb⬇️
84
+
85
+ ```
86
+
87
+ RailsAdmin.config do |config|
88
+
89
+ config.actions do
90
+
91
+ dashboard
92
+
93
+ index
94
+
95
+ new
96
+
97
+ export
98
+
99
+ bulk_delete
100
+
101
+ show
102
+
103
+ edit
104
+
105
+ delete
106
+
107
+ show_in_app
108
+
109
+ end
110
+
111
+ end
112
+
113
+
114
+
115
+ ```
116
+
117
+
118
+
119
+ config/application.rb⬇️
120
+
121
+ ```
122
+
123
+ require_relative 'boot'
124
+
125
+
126
+
127
+ require 'rails/all'
128
+
129
+ Bundler.require(*Rails.groups)
130
+
131
+ module KomoService
132
+
133
+ class Application < Rails::Application
134
+
135
+ config.load_defaults 5.2
136
+
137
+ config.time_zone = 'Tokyo'
138
+
139
+ config.generators do |g|
140
+
141
+ config.assets.initialize_on_precompile = false
142
+
143
+ g.test_framework :rspec,
144
+
145
+ fixtures: true,
146
+
147
+ view_specs: false,
148
+
149
+ helper_specs: false,
150
+
151
+ routing_specs: false,
152
+
153
+ controller_specs: true,
154
+
155
+ request_specs: false
156
+
157
+ g.fixture_refuneral_hallsment :factory_bot, dir: "spec/factories"
158
+
159
+ end
160
+
161
+
162
+
163
+ config.i18n.default_locale = :ja
164
+
165
+ config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.yml').to_s]
166
+
167
+ end
168
+
169
+ end
170
+
171
+ ```
172
+
173
+
174
+
169
175
  お知恵を貸していただけると幸いです。