Skip to content

Commit

Permalink
fix carrierwave settings
Browse files Browse the repository at this point in the history
  • Loading branch information
andersoncardoso committed Oct 7, 2016
1 parent 6909032 commit 9e20110
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/initializers/carrierwave.rb
Expand Up @@ -5,13 +5,15 @@
end
else
CarrierWave.configure do |config|
config.fog_provider = 'fog/aws'
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => ENV["S3_KEY"],
:aws_secret_access_key => ENV["S3_SECRET"],
}
config.asset_host = "https://s3.amazonaws.com/#{ENV["S3_BUCKET"]}"
# config.asset_host = "https://s3.amazonaws.com/#{ENV["S3_BUCKET"]}"
config.cache_dir = "#{Rails.root}/tmp/uploads"
config.fog_directory = ENV["S3_BUCKET"]
# config.fog_public = false
condig.storage = :fog
end
end

0 comments on commit 9e20110

Please sign in to comment.