Rails Heroku回形针文件消失 [英] Rails Heroku Paperclip Files disapperad
本文介绍了Rails Heroku回形针文件消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个Rails,Paperclip和Heroku的webapp,但自从我上次提交以来,我只是添加了Google Analytics,大部分上传的图片都消失了!这是我的链接: http://wo42.herokuapp.com/ 我不知道为什么会发生oO
解决方案Heroku从来没有用过让你写入文件系统,尽管他们最近引入了一些东西来调用临时文件系统 - 这篇文章解释它。最佳选择是使用 S3 。
I'm developing a webapp with Rails, Paperclip and Heroku but since my last commit were I just added Google Analytics the most of the uploaded images disappeared! That's my link: http://wo42.herokuapp.com/ I don't know why that happened oO
解决方案
Heroku never used to let you write to their file-system although they have recently introduced something calld the ephemeral file-system - this article explains it. Best option is to use S3.
这篇关于Rails Heroku回形针文件消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文