2010-04-13 15:10:40 -04:00
|
|
|
CarrierWave.configure do |config|
|
2011-05-08 20:32:15 +08:00
|
|
|
config.fog_credentials = {
|
|
|
|
:provider => 'AWS',
|
|
|
|
:aws_access_key_id => ENV['S3_KEY'],
|
2011-09-25 12:52:08 +08:00
|
|
|
:aws_secret_access_key => ENV['S3_SECRET']
|
|
|
|
# :region => ENV['S3_REGION'] # Change this for different AWS region. Default is 'us-east-1'
|
2011-05-08 20:32:15 +08:00
|
|
|
}
|
|
|
|
config.fog_directory = ENV['S3_BUCKET']
|
2011-04-12 12:35:42 +08:00
|
|
|
end
|