質問編集履歴
1
疑問点
title
CHANGED
File without changes
|
body
CHANGED
@@ -70,4 +70,40 @@
|
|
70
70
|
|
71
71
|
## 参考にしたページ
|
72
72
|
|
73
|
-
[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)
|
73
|
+
[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)
|
74
|
+
|
75
|
+
|
76
|
+
## 追記 (8/15)
|
77
|
+
|
78
|
+
ふと思ったのですが、`config.assets.initialize_on_precompile = false`を書く場所は以下で合っていますでしょうか??
|
79
|
+
|
80
|
+
moduleの中に最初は書きましたが、そうすると依然として同様のエラーが出続けていたため、
|
81
|
+
module の外に書かなきゃいけないんだなと思い込んでいましたが、もしかして間違っていますか?
|
82
|
+
|
83
|
+
config\application.rb
|
84
|
+
```
|
85
|
+
require_relative 'boot'
|
86
|
+
|
87
|
+
require 'rails/all'
|
88
|
+
|
89
|
+
# Require the gems listed in Gemfile, including any gems
|
90
|
+
# you've limited to :test, :development, or :production.
|
91
|
+
Bundler.require(*Rails.groups)
|
92
|
+
|
93
|
+
config.assets.initialize_on_precompile = false
|
94
|
+
|
95
|
+
module Aptnote
|
96
|
+
class Application < Rails::Application
|
97
|
+
# Initialize configuration defaults for originally generated Rails version.
|
98
|
+
config.load_defaults 5.2
|
99
|
+
|
100
|
+
# config.assets.initialize_on_precompile = false # => Precompiling assets failed.
|
101
|
+
|
102
|
+
# Settings in config/environments/* take precedence over those specified here.
|
103
|
+
# Application configuration can go into files in config/initializers
|
104
|
+
# -- all .rb files in that directory are automatically loaded after loading
|
105
|
+
# the framework and any gems in your application.
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
```
|