From 7425a08e744587b6b5b19f06888f8a9a4165105d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franc=CC=A7ois=20Vantomme?= Date: Tue, 15 Feb 2022 09:33:01 +0000 Subject: [PATCH] refactor(openstack): rename STORAGE_TYPE to ACTIVE_STORAGE_SERVICE --- config/env.example | 2 +- config/environments/development.rb | 2 +- config/environments/production.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/env.example b/config/env.example index 1a931103d..c850f6de5 100644 --- a/config/env.example +++ b/config/env.example @@ -35,7 +35,7 @@ BASIC_AUTH_PASSWORD="" # - "openstack": store files remotely on an OpenStack storage service # # (See config/storage.yml for the configuration of each service.) -STORAGE_TYPE="local" +ACTIVE_STORAGE_SERVICE="local" # Configuration for the OpenStack storage service (if enabled) FOG_OPENSTACK_API_KEY="" diff --git a/config/environments/development.rb b/config/environments/development.rb index 6cd35bccc..ba0946324 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -40,7 +40,7 @@ Rails.application.configure do config.action_mailer.raise_delivery_errors = false # Store uploaded files on the local file system (see config/storage.yml for options). - config.active_storage.service = ENV.fetch("STORAGE_TYPE").to_sym + config.active_storage.service = ENV.fetch("ACTIVE_STORAGE_SERVICE").to_sym # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log diff --git a/config/environments/production.rb b/config/environments/production.rb index 3a23d77fd..b72f7e332 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -107,7 +107,7 @@ Rails.application.configure do # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true - config.active_storage.service = ENV.fetch("STORAGE_TYPE").to_sym + config.active_storage.service = ENV.fetch("ACTIVE_STORAGE_SERVICE").to_sym # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify