asciinema.org/config/initializers/carrierwave.rb
2012-06-09 16:11:29 +02:00

12 lines
375 B
Ruby

if CFG['CARRIERWAVE_STORAGE'] == :fog
CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => CFG['AWS_ACCESS_KEY_ID'],
:aws_secret_access_key => CFG['AWS_SECRET_ACCESS_KEY'],
:region => CFG['AWS_REGION']
}
config.fog_directory = CFG['AWS_BUCKET']
end
end