Retrospring/config/initializers/25_carrierwave.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
522 B
Ruby
Raw Normal View History

2020-05-01 15:43:46 -07:00
CarrierWave.configure do |config|
config.fog_credentials = {
:provider => "Local",
:local_root => "#{Rails.root}/public",
}
config.fog_directory = "/"
2020-05-01 15:43:46 -07:00
unless APP_CONFIG["fog"].nil?
config.fog_credentials = APP_CONFIG.dig("fog", "credentials") unless APP_CONFIG.dig("fog", "credentials").nil?
config.fog_directory = APP_CONFIG.dig("fog", "directory") unless APP_CONFIG.dig("fog", "directory").nil?
2020-05-01 15:43:46 -07:00
end
2020-05-17 11:58:27 -07:00
end
CarrierWave::Backgrounder.configure do |c|
c.backend :sidekiq, queue: :carrierwave
end