【发布时间】:2019-07-04 14:12:56
【问题描述】:
我正在尝试使用谷歌云为存储在 Active Storage 中的图像设置缓存。我有以下配置文件
test:
service: Disk
root: <%= Rails.root.join("tmp/storage") %>
local:
service: Disk
root: <%= Rails.root.join("storage") %>
production:
service: GCS
credentials: <%= Rails.root.join("cert/gcs-production.json") %>
project: 'my-app-121212'
bucket: 'my-prod-bucket'
staging:
service: GCS
credentials: <%= Rails.root.join("cert/gcs-staging.json") %>
project: 'my-app-121212'
bucket: 'my-stage-bucket'
谁能建议我在哪里可以指定缓存设置,我希望缓存图像。
【问题讨论】:
标签: ruby-on-rails google-cloud-storage rails-activestorage