diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
| commit | 9a19a0494ef51cdac9a78e24d517ca48ba44c453 (patch) | |
| tree | 8eaae12d8047a40e29d3ea7ff3116b5c869e04bd /config/environments/production.rb | |
| parent | 85a01e35274b8d4d4165a7b26bd7986e211246bb (diff) | |
| parent | 1853082fcd8c067390c246f9daa01a9b47387497 (diff) | |
Migration from Rails 2.3.5 to Rails 8.1 successful.
Merging dev branch.
Diffstat (limited to 'config/environments/production.rb')
| -rw-r--r-- | config/environments/production.rb | 52 |
1 files changed, 25 insertions, 27 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 68ceccd..fced949 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb | |||
| @@ -1,35 +1,33 @@ | |||
| 1 | # Settings specified here will take precedence over those in config/environment.rb | 1 | require "active_support/core_ext/integer/time" |
| 2 | 2 | ||
| 3 | # The production environment is meant for finished, "live" apps. | 3 | Rails.application.configure do |
| 4 | # Code is not reloaded between requests | 4 | config.enable_reloading = false |
| 5 | config.cache_classes = true | 5 | config.eager_load = true |
| 6 | config.assume_ssl = true | ||
| 6 | 7 | ||
| 7 | # Full error reports are disabled and caching is turned on | 8 | config.consider_all_requests_local = false |
| 8 | config.action_controller.consider_all_requests_local = false | 9 | config.action_controller.perform_caching = true |
| 9 | config.action_controller.perform_caching = true | ||
| 10 | 10 | ||
| 11 | # See everything in the log (default is :info) | 11 | config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" } |
| 12 | # config.log_level = :debug | ||
| 13 | 12 | ||
| 14 | # Use a different logger for distributed setups | 13 | config.log_tags = [ :request_id ] |
| 15 | # config.logger = SyslogLogger.new | 14 | config.logger = ActiveSupport::TaggedLogging.logger(STDOUT) |
| 15 | config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info") | ||
| 16 | 16 | ||
| 17 | # Use a different cache store in production | 17 | config.active_support.report_deprecations = false |
| 18 | # config.cache_store = :mem_cache_store | ||
| 19 | 18 | ||
| 20 | # Enable serving of images, stylesheets, and javascripts from an asset server | 19 | config.action_mailer.delivery_method = :sendmail |
| 21 | # config.action_controller.asset_host = "http://assets.example.com" | 20 | config.action_mailer.sendmail_settings = { |
| 21 | location: '/usr/sbin/sendmail', | ||
| 22 | arguments: '-i -t' | ||
| 23 | } | ||
| 24 | config.action_mailer.perform_deliveries = true | ||
| 25 | config.action_mailer.raise_delivery_errors = true | ||
| 26 | config.action_mailer.default_url_options = { host: "ccc.de" } | ||
| 22 | 27 | ||
| 23 | # Disable delivery errors, bad email addresses will be ignored | 28 | config.i18n.fallbacks = true |
| 24 | # config.action_mailer.raise_delivery_errors = false | ||
| 25 | 29 | ||
| 26 | # Enable threaded mode | 30 | config.assets.css_compressor = nil |
| 27 | # config.threadsafe! | 31 | config.active_record.dump_schema_after_migration = false |
| 28 | 32 | config.active_record.attributes_for_inspect = [ :id ] | |
| 29 | ActionMailer::Base.delivery_method = :sendmail | 33 | end |
| 30 | ActionMailer::Base.sendmail_settings = { | ||
| 31 | :location => '/usr/sbin/sendmail', | ||
| 32 | :arguments => '-i -t' | ||
| 33 | } | ||
| 34 | ActionMailer::Base.perform_deliveries = true | ||
| 35 | ActionMailer::Base.raise_delivery_errors = true \ No newline at end of file | ||
