summaryrefslogtreecommitdiff
path: root/config/environments/production.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-27 16:58:53 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-27 16:58:53 +0200
commit420506e58fdfc84f1a5bede0a01dedf0af3bb4f3 (patch)
tree57726b40e8aa9ccf80f874f39d3facefc0331420 /config/environments/production.rb
parent241d5e91b2b6716e2861cc77d319c3d3568343a8 (diff)
Stage 7: Rails 7.2 → 8.1 on Ruby 3.2.11
- Bump Rails to 8.1.3 (Ruby unchanged at 3.2.11, new gemset rails8-upgrade) - config.load_defaults 8.1; merge app:update diffs for all environment files - Remove routing-filter 0.7.0; replace with native scope '(:locale)' in routes.rb and default_url_options in ApplicationController - Delete config/initializers/routing_filter_rails71_patch.rb - Replace vendored TinyMCE 3.x (~200 files) with tinymce-rails ~> 8.3; migrate admin_interface.js from jQuery .tinymce()/advanced theme to tinymce.init(); add config/tinymce.yml; note: TinyMCE 7+ is GPL - rails-i18n ~> 8.0 added explicitly (previously indirect dependency) - awesome_nested_set, acts-as-taggable-on pinned to git main/master (gemspec activerecord < 8.1 ceiling; no functional incompatibility; repin to version once upstream releases updated gemspecs) - globalize ~> 7.0, libxml-ruby ~> 5.0, nokogiri ~> 1.18, pg ~> 1.5 - sass-rails, coffee-rails, uglifier moved from :assets group to main (Sprockets 4 convention; :assets group no longer meaningful) - Node: head, draft, lock_owner marked belongs_to optional: true - Page: node, user, editor marked belongs_to optional: true - Static assets in public/images/ and public/javascripts/ referenced via plain HTML tags; Rails 8 load_defaults raises on pipeline helpers for undeclared assets - sessions_controller_test.rb: remove stale require and dead rescue_action - users_controller_test.rb: assert button[type=submit] not input[type=submit] (Rails 8 button_to renders <button> not <input>) - test_helper.rb: node.reload after children.create! (awesome_nested_set 3.9.0 does not refresh parent in memory after callback) - 129 runs, 339 assertions, 3 failures, 0 errors — identical baseline to 7.2
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r--config/environments/production.rb42
1 files changed, 17 insertions, 25 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 82b918a..f8d078e 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -1,34 +1,20 @@
1# Settings specified here will take precedence over those in config/environment.rb 1require "active_support/core_ext/integer/time"
2 2
3Cccms::Application.configure do 3Rails.application.configure do
4 # The production environment is meant for finished, "live" apps. 4 config.enable_reloading = false
5 # Code is not reloaded between requests
6 config.cache_classes = true
7
8 # Full error reports are disabled and caching is turned on
9 config.action_controller.consider_all_requests_local = false
10 config.action_controller.perform_caching = true
11
12 # See everything in the log (default is :info)
13 config.log_level = :info
14
15 config.active_support.deprecation = :notify
16 config.eager_load = true 5 config.eager_load = true
6 config.assume_ssl = true
17 7
18 # Use a different logger for distributed setups 8 config.consider_all_requests_local = false
19 # config.logger = SyslogLogger.new 9 config.action_controller.perform_caching = true
20 10
21 # Use a different cache store in production 11 config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" }
22 # config.cache_store = :mem_cache_store
23 12
24 # Enable serving of images, stylesheets, and javascripts from an asset server 13 config.log_tags = [ :request_id ]
25 # config.action_controller.asset_host = "http://assets.example.com" 14 config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
15 config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
26 16
27 # Disable delivery errors, bad email addresses will be ignored 17 config.active_support.report_deprecations = false
28 # config.action_mailer.raise_delivery_errors = false
29
30 # Enable threaded mode
31 # config.threadsafe!
32 18
33 config.action_mailer.delivery_method = :sendmail 19 config.action_mailer.delivery_method = :sendmail
34 config.action_mailer.sendmail_settings = { 20 config.action_mailer.sendmail_settings = {
@@ -37,4 +23,10 @@ Cccms::Application.configure do
37 } 23 }
38 config.action_mailer.perform_deliveries = true 24 config.action_mailer.perform_deliveries = true
39 config.action_mailer.raise_delivery_errors = true 25 config.action_mailer.raise_delivery_errors = true
26 config.action_mailer.default_url_options = { host: "ccc.de" }
27
28 config.i18n.fallbacks = true
29
30 config.active_record.dump_schema_after_migration = false
31 config.active_record.attributes_for_inspect = [ :id ]
40end 32end