生产环境下日志分天
This commit is contained in:
parent
4fe8b23069
commit
79fd7ebd7a
|
@ -17,6 +17,7 @@ RedmineApp::Application.configure do
|
||||||
# config.logger.level = Logger::INFO
|
# config.logger.level = Logger::INFO
|
||||||
|
|
||||||
# Full error reports are disabled and caching is turned on
|
# Full error reports are disabled and caching is turned on
|
||||||
|
config.logger = Logger.new('log/development.log', 'daily',1048576) # daily, weekly or monthly
|
||||||
config.action_controller.perform_caching = true
|
config.action_controller.perform_caching = true
|
||||||
config.cache_store = :file_store, "#{Rails.root }/public/tmp/"
|
config.cache_store = :file_store, "#{Rails.root }/public/tmp/"
|
||||||
# Enable serving of images, stylesheets, and javascripts from an asset server
|
# Enable serving of images, stylesheets, and javascripts from an asset server
|
||||||
|
|
Loading…
Reference in New Issue