photomix/config/initializers/s3.rb
2011-09-25 12:52:08 +08:00

9 lines
366 B
Ruby

CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => ENV['S3_KEY'],
:aws_secret_access_key => ENV['S3_SECRET']
# :region => ENV['S3_REGION'] # Change this for different AWS region. Default is 'us-east-1'
}
config.fog_directory = ENV['S3_BUCKET']
end