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

Version Path
crowdblog-0.0.13 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.12 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.10 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.9 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.8 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.7 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.6 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.5 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.4 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.3 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.2 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.1 spec/dummy/config/initializers/carrierwave.rb