You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
paperclipで画像をアップロードしてた場合、S3に移行するのは簡単。paperclipはDB内にファイルのパスを持ってるわけじゃないので、サーバーファイルシステム上の画像を全部S3にコピーした上でアプリの設定を変えれば良い。 # Gemfile: gem 'paperclip' gem 'aws-s3' gem 'aws-sdk' # config/initializers/paperlicp.rb: if Rails.env.production? Paperclip::Attachment.default_options.update( storage: :s3, s3_credentials: "#{Rails.root}/config/s3.yml", s3_host_alias: Settings.cdn_host, path: ":class/:id/:attachmen
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く