質問編集履歴
1
追加記載:config/environments/production\.rb
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
###関連するソースコード
|
58
58
|
|
59
|
-
config/environments/development.rb
|
59
|
+
config/environments/development.rb(一部抜粋)
|
60
60
|
|
61
61
|
```
|
62
62
|
|
@@ -83,6 +83,50 @@
|
|
83
83
|
}
|
84
84
|
|
85
85
|
```
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
config/environments/production.rb (コメントアウトは省略)
|
90
|
+
|
91
|
+
```
|
92
|
+
|
93
|
+
Rails.application.configure do
|
94
|
+
|
95
|
+
config.cache_classes = true
|
96
|
+
|
97
|
+
config.eager_load = true
|
98
|
+
|
99
|
+
config.consider_all_requests_local = false
|
100
|
+
|
101
|
+
config.action_controller.perform_caching = true
|
102
|
+
|
103
|
+
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
104
|
+
|
105
|
+
config.assets.js_compressor = :uglifier
|
106
|
+
|
107
|
+
config.assets.compile = false
|
108
|
+
|
109
|
+
config.assets.digest = true
|
110
|
+
|
111
|
+
config.log_level = :debug
|
112
|
+
|
113
|
+
config.logger = Logger.new("log/production.log", 5, 10 * 1024 * 1024)
|
114
|
+
|
115
|
+
config.i18n.fallbacks = true
|
116
|
+
|
117
|
+
config.active_support.deprecation = :notify
|
118
|
+
|
119
|
+
config.log_formatter = ::Logger::Formatter.new
|
120
|
+
|
121
|
+
config.active_record.dump_schema_after_migration = false
|
122
|
+
|
123
|
+
end
|
124
|
+
|
125
|
+
```
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
86
130
|
|
87
131
|
|
88
132
|
|