rails heroku app/assets/images 或上传至 AWS/Cloudinary

rails heroku app/assets/images or upload to AWS/Cloudinary

在我的应用程序中,我有大约 400 张图像需要在不同时间显示。不会有用户上传的图像。换句话说,我控制了我的应用程序中使用的所有图片。

我想知道推荐的路线是什么。最好将所有图像放在 app/assets/images 中,还是将它们全部上传到 AWS 等第三方服务更好?

该应用程序最终将通过 Heroku 运行。谢谢

来自 this question (and first comment), your total compiled code and assets cannot exceed 100MB. As long as you keep under this, you'll be fine with Heroku. However, if you exceed that, or the number of files will change dramatically or consistently, I'd recommend Cloudinary, which gives you 500MB of FREE (file)storage and is available as a Heroku Add-on.