Sha256: f293475a0e745c7184b6bbfc6e0b223c41ab4bd9a8fead98f9304d5b833453a0
Contents?: true
Size: 1.25 KB
Versions: 35
Compression:
Stored size: 1.25 KB
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 config.storage = :file config.root = File.join(Rails.root, 'public') # # put your CDN host below instead # # config.asset_host = 'http://cdn.example.com' # # You can also use Amazon S3 instead. The following configuration works for AWS # # # # 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'] # } # # # Put your CDN host below instead # if ENV['S3_ASSET_HOST_URL'].present? # config.asset_host = ENV['S3_ASSET_HOST_URL'] # end else # settings for the local filesystem config.storage = :file config.root = File.join(Rails.root, 'public') end end
Version data entries
35 entries across 35 versions & 1 rubygems