6

I'm developing my personal photography portfolio using Ruby on rails. I'm not at all saving those images in my assets/images folder as there are many high resolution images which will cost increase in size of the site folder. So i thought to upload those pics on some image hosting websites so that ill only give a URL of that pic which will dramatically cost in decreasing the size of the site folder. Ive three questions regarding my portfolio: 1. Is this the right way to do for portfolio websites? 2. What are the best image hosting websites for such need? 3. On what basis ill use the database for my portfolio?

Thanks.

4

2 回答 2

10

您应该查看一些 CDN(内容交付网络)服务,例如

Ruby 有许多用于管理此类云服务的 gem。例如:

于 2012-11-23T22:33:26.833 回答
0

您还可以使用 Paperclip,它也可以链接到 AWS 来存储所有图像并管理存储逻辑。

https://github.com/thoughtbot/paperclip

于 2017-05-09T06:22:19.727 回答