Sha256: 2194044a7e0f8f00601dff2046b340ec1b02674183c19b39f88aa1ec8824f188
Contents?: true
Size: 893 Bytes
Versions: 2
Compression:
Stored size: 893 Bytes
Contents
CarrierWave.configure do |config| config.cache_dir = File.join(Rails.root, 'tmp', 'uploads') case Rails.env.to_sym when :development config.storage = :file config.root = File.join(Rails.root, 'public') when :production # the following configuration works for Amazon S3 # # WARNING: add the "carrierwave-aws" gem in your Rails app Gemfile. # More information here: https://github.com/sorentwo/carrierwave-aws # config.storage = :aws config.aws_bucket = ENV['S3_BUCKET'] config.aws_acl = 'public-read' config.aws_credentials = { access_key_id: ENV['S3_KEY_ID'], secret_access_key: ENV['S3_SECRET_KEY'], region: ENV['S3_BUCKET_REGION'] } else # settings for the local filesystem config.storage = :file config.root = File.join(Rails.root, 'public') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms-3.0.0.rc3 | lib/generators/locomotive/install/templates/carrierwave.rb |
locomotivecms-3.0.0.rc2 | lib/generators/locomotive/install/templates/carrierwave.rb |