Skip to content

Instantly share code, notes, and snippets.

@MarcoMorawec
Created October 6, 2013 19:40
Show Gist options
  • Save MarcoMorawec/6858226 to your computer and use it in GitHub Desktop.
Save MarcoMorawec/6858226 to your computer and use it in GitHub Desktop.
CarrierWave.configure do |config|
if Rails.env.development?
config.storage = :file
else
config.storage = :fog
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => ENV['AWS_ACCESS_KEY'],
:aws_secret_access_key => ENV['AWS_SECRET_KEY']
}
config.fog_directory = ENV['AWS_BUCKET']
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment