为什么Cloudinary会一直删除我的图片?

时间:2013-10-31 04:42:51

标签: ruby-on-rails ruby image-processing heroku cloudinary

我有一个测试应用:www.spottedbr.com 它没有托管 heroku 我使用这2个宝石:

gem "rmagick"
gem "carrierwave"

我还没有任何访问者(所以应用程序在heroku中睡觉)。 但是当我决定上传缩略图和封面图片时,几天之后(或者应用程序睡眠之后我认为?)我上传的图片不再可用。有人可以在这解释我为什么会这样吗?我需要付钱吗?怎么了?

编辑: 我使用此方法上传图像(来自RailsCasts.com):http://railscasts.com/episodes/253-carrierwave-file-uploads

我刚刚在heroku上将插件Cloudnary添加到我的应用程序中,没有其他操作了。

1 个答案:

答案 0 :(得分:1)

如果你没有使用像Carrierwave这样的Amazon S3 / Rackspace文件,你的上传只会存在于他们上传到的dyno上,直到下次重新启动或部署dyno为止。

您需要查看持久性文件存储https://devcenter.heroku.com/articles/s3或将所有资产存储移动到您在帖子中提到的Cloudinary中。有关如何在Heroku上配置它的详细信息,请访问https://devcenter.heroku.com/articles/cloudinary

相关问题