Mercurial > rsstweet
comparison config/environments/production.rb @ 214:2335107f35d0
Run rails update
author | nanaya <me@nanaya.pro> |
---|---|
date | Fri, 11 Dec 2020 03:47:39 +0900 |
parents | 8190fa511e35 |
children | ad6264cca788 |
comparison
equal
deleted
inserted
replaced
213:609e96a79ad8 | 214:2335107f35d0 |
---|---|
1 require "active_support/core_ext/integer/time" | |
2 | |
1 Rails.application.configure do | 3 Rails.application.configure do |
2 # Settings specified here will take precedence over those in config/application.rb. | 4 # Settings specified here will take precedence over those in config/application.rb. |
3 | 5 |
4 # Code is not reloaded between requests. | 6 # Code is not reloaded between requests. |
5 config.cache_classes = true | 7 config.cache_classes = true |
21 # Disable serving static files from the `/public` folder by default since | 23 # Disable serving static files from the `/public` folder by default since |
22 # Apache or NGINX already handles this. | 24 # Apache or NGINX already handles this. |
23 config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? | 25 config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? |
24 | 26 |
25 # Enable serving of images, stylesheets, and JavaScripts from an asset server. | 27 # Enable serving of images, stylesheets, and JavaScripts from an asset server. |
26 # config.action_controller.asset_host = 'http://assets.example.com' | 28 # config.asset_host = 'http://assets.example.com' |
27 | 29 |
28 # Specifies the header that your server uses for sending files. | 30 # Specifies the header that your server uses for sending files. |
29 # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache | 31 # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache |
30 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX | 32 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX |
31 | 33 |
32 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. | 34 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. |
33 # config.force_ssl = true | 35 # config.force_ssl = true |
34 | 36 |
35 # Use the lowest log level to ensure availability of diagnostic information | 37 # Include generic and useful information about system operation, but avoid logging too much |
36 # when problems arise. | 38 # information to avoid inadvertent exposure of personally identifiable information (PII). |
37 config.log_level = :debug | 39 config.log_level = :info |
38 | 40 |
39 # Prepend all log lines with the following tags. | 41 # Prepend all log lines with the following tags. |
40 config.log_tags = [:request_id] | 42 config.log_tags = [ :request_id ] |
41 | 43 |
42 # Use a different cache store in production. | 44 # Use a different cache store in production. |
43 # config.cache_store = :mem_cache_store | 45 # config.cache_store = :mem_cache_store |
44 | 46 |
45 # Use a real queuing backend for Active Job (and separate queues per environment). | 47 # Use a real queuing backend for Active Job (and separate queues per environment). |
51 config.i18n.fallbacks = true | 53 config.i18n.fallbacks = true |
52 | 54 |
53 # Send deprecation notices to registered listeners. | 55 # Send deprecation notices to registered listeners. |
54 config.active_support.deprecation = :notify | 56 config.active_support.deprecation = :notify |
55 | 57 |
58 # Log disallowed deprecations. | |
59 config.active_support.disallowed_deprecation = :log | |
60 | |
61 # Tell Active Support which deprecation messages to disallow. | |
62 config.active_support.disallowed_deprecation_warnings = [] | |
63 | |
56 # Use default logging formatter so that PID and timestamp are not suppressed. | 64 # Use default logging formatter so that PID and timestamp are not suppressed. |
57 config.log_formatter = ::Logger::Formatter.new | 65 config.log_formatter = ::Logger::Formatter.new |
58 | 66 |
59 # Use a different logger for distributed setups. | 67 # Use a different logger for distributed setups. |
60 # require 'syslog/logger' | 68 # require "syslog/logger" |
61 # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') | 69 # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') |
62 | 70 |
63 if ENV["RAILS_LOG_TO_STDOUT"].present? | 71 if ENV["RAILS_LOG_TO_STDOUT"].present? |
64 logger = ActiveSupport::Logger.new(STDOUT) | 72 logger = ActiveSupport::Logger.new(STDOUT) |
65 logger.formatter = config.log_formatter | 73 logger.formatter = config.log_formatter |