This generates a file in config/initializers/dragonfly.rb. See Configuration for customizations. Handling attachments Supposing we have a Photo model that we wish to add an image attribute to. Dragonfly provides the accessor by adding to the model class Photo < ActiveRecord::Base dragonfly_accessor :image # defines a reader/writer for image # ... end
This article demonstrates how to add direct S3 uploads to a Rails app. While there are many popular S3 image upload solutions for Ruby and Rails such as Paperclip and CarrierWave, these solutions use the server as a temporary cache. They typically upload the file to Heroku and then stream it to S3. While this works well for small files, larger files may be deleted from the dyno before they can be
はじめに あのさぁ・・・Heroku使ってる? 1 Applicationあたり1 dynoまで無料なの素晴らしいよね! 30秒制限や USとEUにしかリージョンが無かったり 2 dyno目からは約$36/月いったり Heroku Postgresは1万行までの無料で 内部記録領域は揮発性だけど 無料という言葉が全てを許す。確認だけのステージングアプリケーションだったら1 dynoでいけるし、Twitter BOTや簡単な定期処理、まだダイヤの原石であるアクセス数の少ないウェブサービスなんかには持ってこい!デプロイもAWS Elastic Beanstalkなんかに比べたらめがっさ速いです!(アーキテクチャ上当たり前ということは置いといて) 立ちはだかる「画像アップロードからのサムネイル作成」 ただやはり制限があると難しいことも生まれてくるのです。ここではその中でも 画像アップロードからの
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く