Skip to content

Instantly share code, notes, and snippets.

@chadoh
Created July 3, 2011 14:35
Show Gist options
  • Save chadoh/1062277 to your computer and use it in GitHub Desktop.
Save chadoh/1062277 to your computer and use it in GitHub Desktop.
Fog.credentials_path = Rails.root.join('config/fog_credentials.yml')
CarrierWave.configure do |config|
config.permissions = 0666
config.fog_credentials = { provider: 'AWS' }
config.fog_directory = 'buckets-r-us'
# config.fog_host = 's3.amazonaws.com' # optional, defaults to nil
config.fog_public = true # optional, defaults to true
config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} # optional, defaults to {}
end
if Rails.env.test? or Rails.env.cucumber?
CarrierWave.configure do |config|
config.enable_processing = false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment