【发布时间】:2011-11-22 02:35:00
【问题描述】:
我在 Heroku 上有两个正在生产中的应用程序实例,staging.myapp.com 和 www.myapp.com,我正在遵循这个工作流程:Staging instance on Heroku。
由于我在 AWS S3 中使用 Carrierwave,我想知道是否可以修改存储路径以指定每个实例,例如:
def store_dir
instance = "staging" | "production"
#{instance}/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}
end
【问题讨论】:
标签: ruby-on-rails heroku carrierwave staging