Sha256: a55f6acb0b8fa4971d23086df297ddc2dc9d5b5052a7b32aa64d97f35d0172e0
Contents?: true
Size: 575 Bytes
Versions: 32
Compression:
Stored size: 575 Bytes
Contents
CarrierWave.configure do |config| if Rails.env.production? config.storage = :fog config.fog_credentials = { :provider => 'AWS', :aws_access_key_id => ENV['AWS_ACCESS_KEY'], :aws_secret_access_key => ENV['AWS_SECRET_KEY'] #:region => 'us-east-1' } config.fog_directory = ENV['AWS_BUCKET'] config.fog_host = 'http://blogassets.crowdint.com' config.fog_public = true config.fog_attributes = {'Cache-Control' => 'max-age=315576000'} else config.storage = :file end end
Version data entries
32 entries across 32 versions & 2 rubygems