Open Sec-il-n opened 3 years ago
S3 バケット作成 gem の追加 gem 'fog-aws' gem 'carrierwave'
gem 'fog-aws'
gem 'carrierwave'
Uploader編集 storage :fog
storage :fog
バケットの設定 config/initializers/carrierwave.rbを新規作成
キー アカウント名 -> [セキュリティ認証情報]
# パブリックオブジェクトとしてアップロードするかどうか config.fog_public = ~false~ true
config.fog_public =
true
参考
S3 バケット作成 gem の追加
gem 'fog-aws'
gem 'carrierwave'
Uploader編集
storage :fog
バケットの設定 config/initializers/carrierwave.rbを新規作成
キー アカウント名 -> [セキュリティ認証情報]