ruby-on-rails – 使用回形针在heroku中播种图像

ruby-on-rails – 使用回形针在heroku中播种图像,第1张

概述当我运行heroku运行rake db:seed我得到 Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/image20130219-2-1gk1yip.png[0]'Command :: composite -gravity Center /app/public/media/watermark.png "/tmp/ima 当我运行heroku运行rake db:seed我得到

Command :: IDentify -format '%wx%h,%[exif:orIEntation]' '/tmp/image20130219-2-1gk1yip.png[0]'Command :: composite -gravity Center /app/public/media/watermark.png "/tmp/image20130219-2-1gk1yip.png[0]" -resize "1x1<" "/tmp/image20130219-2-1gk1yip.png20130219-2-1ng5f6c[0]"Command :: file -b --mime '/tmp/image20130219-2-1gk1yip.png20130219-2-1ng5f6c'Command :: IDentify -format '%wx%h,%[exif:orIEntation]' '/tmp/image20130219-2-1gk1yip20130219-2-t3caqg.png20130219-2-1ng5f6c[0]'Command :: convert "/tmp/image20130219-2-1gk1yip20130219-2-t3caqg.png20130219-2-1ng5f6c[0]" -resize "260x190" "/tmp/image20130219-2-1gk1yip20130219-2-t3caqg.png20130219-2-1mz0u16[0]"Command :: file -b --mime '/tmp/image20130219-2-1gk1yip20130219-2-t3caqg.png20130219-2-1mz0u16'[paperclip] Saving attachments.

我得到了我的Stuff和有效的db记录,但是在公共文件夹中没有重新创建图像..如果我通过视图形式添加图像一切都很好.

我的种子

Stuff.create! Title: 'Title',description: 'desc',:img => file.open(file.join(Rails.root,'/db/seeds/image.png'))

的Gemfile

gem 'Json'gem 'haml-rails'gem 'sass-rails'gem 'coffee-rails'gem 'rails_autolink'gem 'formtastic'gem 'paperclip'gem 'rmagick','2.12.0'gem 'pg'gem 'uglifIEr'
解决方法 找到解决方案

thx this

和this

和this

gem ‘aws-sdk’

总结

以上是内存溢出为你收集整理的ruby-on-rails – 使用回形针在heroku中播种图像全部内容,希望文章能够帮你解决ruby-on-rails – 使用回形针在heroku中播种图像所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/langs/1275205.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-08
下一篇 2022-06-08

发表评论

登录后才能评论

评论列表(0条)

保存