You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
CarrierWave.configure do |config|
|
|
|
|
if CFG.carrierwave_storage == 'fog'
|
|
|
|
config.storage = :fog
|
|
|
|
|
|
|
|
config.fog_credentials = {
|
|
|
|
:provider => 'AWS',
|
|
|
|
:aws_access_key_id => CFG.aws_access_key_id,
|
|
|
|
:aws_secret_access_key => CFG.aws_secret_access_key,
|
|
|
|
:region => CFG.aws_region
|
|
|
|
}
|
|
|
|
config.fog_directory = CFG.aws_bucket
|
|
|
|
config.fog_public = false
|
|
|
|
elsif CFG.carrierwave_storage == 'file'
|
|
|
|
config.root = Rails.root
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
if File.exists?(Rails.root.to_s + "/public/uploads/asciicast")
|
|
|
|
raise "Please move all directories from ./public/uploads/ to ./uploads/"
|
|
|
|
end
|