質問編集履歴

1

疑問点

2018/08/14 20:11

投稿

igar
igar

スコア110

test CHANGED
File without changes
test CHANGED
@@ -143,3 +143,75 @@
143
143
 
144
144
 
145
145
  [ruby on rails - heroku push error: "Could not detect rake tasks" - Stack Overflow](https://stackoverflow.com/questions/36394297/heroku-push-error-could-not-detect-rake-tasks)
146
+
147
+
148
+
149
+
150
+
151
+ ## 追記 (8/15)
152
+
153
+
154
+
155
+ ふと思ったのですが、`config.assets.initialize_on_precompile = false`を書く場所は以下で合っていますでしょうか??
156
+
157
+
158
+
159
+ moduleの中に最初は書きましたが、そうすると依然として同様のエラーが出続けていたため、
160
+
161
+ module の外に書かなきゃいけないんだなと思い込んでいましたが、もしかして間違っていますか?
162
+
163
+
164
+
165
+ config\application.rb
166
+
167
+ ```
168
+
169
+ require_relative 'boot'
170
+
171
+
172
+
173
+ require 'rails/all'
174
+
175
+
176
+
177
+ # Require the gems listed in Gemfile, including any gems
178
+
179
+ # you've limited to :test, :development, or :production.
180
+
181
+ Bundler.require(*Rails.groups)
182
+
183
+
184
+
185
+ config.assets.initialize_on_precompile = false
186
+
187
+
188
+
189
+ module Aptnote
190
+
191
+ class Application < Rails::Application
192
+
193
+ # Initialize configuration defaults for originally generated Rails version.
194
+
195
+ config.load_defaults 5.2
196
+
197
+
198
+
199
+ # config.assets.initialize_on_precompile = false # => Precompiling assets failed.
200
+
201
+
202
+
203
+ # Settings in config/environments/* take precedence over those specified here.
204
+
205
+ # Application configuration can go into files in config/initializers
206
+
207
+ # -- all .rb files in that directory are automatically loaded after loading
208
+
209
+ # the framework and any gems in your application.
210
+
211
+ end
212
+
213
+ end
214
+
215
+
216
+
217
+ ```