Add the ActiveStorage configuration
This commit is contained in:
parent
922e504623
commit
5c25b86c46
4 changed files with 8 additions and 0 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
3
config/storage.yml
Normal file
3
config/storage.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
local:
|
||||
service: Disk
|
||||
root: <%= Rails.root.join("storage") %>
|
Loading…
Reference in a new issue