Created
January 20, 2015 16:22
-
-
Save jlgasparrini/059f83e80036d8971cf9 to your computer and use it in GitHub Desktop.
Carrierwave settings to conect with AWS S3 API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/carrierwave.rb | |
CarrierWave.configure do |config| | |
config.fog_credentials = { | |
:provider => 'AWS', | |
:aws_access_key_id => ENV["AWS_ACCESS_KEY"], | |
:aws_secret_access_key => ENV["AWS_SECRET_KEY"], | |
:region => ENV["S3_REGION"] | |
} | |
config.fog_directory = ENV["AWS_BUCKET"] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment