From 8cd29793be91b6184567c469ec129e97a0fb1282 Mon Sep 17 00:00:00 2001 From: Robbie Paul Date: Mon, 27 Apr 2026 17:26:13 +0100 Subject: [PATCH] Fix activestorage config error --- config/environments/production.rb | 2 ++ config/storage.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index d61091e..aa56bd7 100755 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -81,6 +81,8 @@ Railsgoat::Application.configure do # Rake tasks automatically ignore this option for performance. config.eager_load = true + config.active_storage.service = :production + # For Rails 4.0+: Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new diff --git a/config/storage.yml b/config/storage.yml index 695f17b..a4aad78 100644 --- a/config/storage.yml +++ b/config/storage.yml @@ -5,3 +5,7 @@ test: local: service: Disk root: <%= Rails.root.join("storage") %> + +production: + service: Disk + root: <%= Rails.root.join("storage") %>