我想在我的 S3 存储桶中有不同的文件夹,以使生产数据库远离开发环境。我不知道该怎么做,这是我在载波初始化程序中提出的骨架:
if Rails.env.test? or Rails.env.development?
CarrierWave.configure do |config|
//configure dev storage path
end
end
if Rails.production?
CarrierWave.configure do |config|
//configure prod storage path
end
end