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.6.2 spec/dummy/config/initializers/carrierwave.rb
miniblog-1.0.2 spec/dummy/config/initializers/carrierwave.rb
miniblog-1.0.1 spec/dummy/config/initializers/carrierwave.rb
miniblog-1.0.0 spec/dummy/config/initializers/carrierwave.rb
miniblog-1.0.0.beta spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.6.0 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.5.0 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.3.3 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.4.0 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.3.2 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.3.1 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.3.0 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.2.0 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.1.3 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.1.2 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.1.1 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.1.0 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.16 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.15 spec/dummy/config/initializers/carrierwave.rb
crowdblog-0.0.14 spec/dummy/config/initializers/carrierwave.rb