diff --git a/config/deploy.rb b/config/deploy.rb index f5b8304cd..7752478fe 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -56,6 +56,7 @@ set :shared_paths, [ 'config/database.yml', "config/skylight.yml", "config/fog_credentials.yml", + 'config/storage.yml', 'config/initializers/secret_token.rb', 'config/initializers/features.yml', "config/environments/#{rails_env}.rb", diff --git a/config/environments/development.rb b/config/environments/development.rb index d0370faea..acf2838a6 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -19,6 +19,8 @@ Rails.application.configure do # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false + config.active_storage.service = :local + # 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 60eaafedd..c27fd85c1 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -68,6 +68,8 @@ Rails.application.configure do # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true + config.active_storage.service = :clever_cloud + # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify diff --git a/config/storage.yml b/config/storage.yml new file mode 100644 index 000000000..2c6762e0d --- /dev/null +++ b/config/storage.yml @@ -0,0 +1,3 @@ +local: + service: Disk + root: <%= Rails.root.join("storage") %>