出于某种原因,我在上传我的应用时遇到了一些错误。但是,我的日志文件完全空白。在本地,我的production.log在生产模式下运行时完全空白。我不知道为什么,如config.log_level = :debug
我在生产模式下使用以下设置在本地运行我的应用程序:
App::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# config.assets.js_compressor = :uglifier
# config.assets.digest = true
# config.i18n.fallbacks = true
config.log_formatter = ::Logger::Formatter.new
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
# config.assets.compile = true
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = true
config.action_controller.perform_caching = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:authentication => :plain,
:address => "smtp.mailgun.org",
:port => x,
:domain => "x",
:user_name => "x",
:password => "x"
}
config.active_support.deprecation = :log
config.active_record.migration_error = :page_load
config.serve_static_assets = true
config.log_level = :debug
end
浏览我的应用程序只会在日志中产生任何内容。