在Heroku上剪纸?

编程入门 行业动态 更新时间:2024-10-27 08:37:00
本文介绍了在Heroku上剪纸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我很好奇是否有人可以在不使用S3的情况下在Heroku上工作.我假设Heroku是一个只读系统,但是必须有某种方法可以在其中保存图像.

I was curious if anyone could get paperclipped working on Heroku without using S3. I'm assuming Heroku is a read-only system, but there must be some way to save images there.

推荐答案

您无法写入Heroku的文件系统,因此不可以,无法以所需方式保存图像.您的选择是使用诸如S3之类的服务,或者将其存储在数据库中.我建议使用S3,因为数据库并未针对文件存储进行优化.值得阅读 Heroku有关文件上传的文档.

You can't write to Heroku's file system, so no, there is no way to save images the way you want. Your options are using a service like S3, or storing them in the database. I recommend using S3, because databases are not optimized for file storage. It's worth reading Heroku's documentation on file uploads.

更多推荐

在Heroku上剪纸?

本文发布于:2023-10-13 09:32:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1487579.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:剪纸   Heroku

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!