Oded Harth
Oded Harth

Reputation: 4406

Should I store my site's images on heroku?

Should I store my site's images on heroku?

images such as the logo of my site and so on. I talking just about the images of the design of the site.

Will it affect my sites performance?

Upvotes: 2

Views: 835

Answers (2)

John Beynon
John Beynon

Reputation: 37507

typically anything that is core to my application (ie images for layout, logos etc) I commit to git and will deploy to Heroku - assets like uploaded images/pdfs etc all go to Heroku

Upvotes: 1

Douglas F Shearer
Douglas F Shearer

Reputation: 26488

Yes. Your logo and other associated images that make up the site should not be terribly large, and will not negatively affect your slug size or slight performance much.

The downside of having these assets stored and served separately is that you application will not be all-together, which adds an extra layer of difficulty to development, as you have to update images in a separate place from your code.

Any large files uploaded by users, that are not part of the application itself but stored by it, should be stored on something like S3 (not that you can write to the Heroku FS anyway).

Upvotes: 6

Related Questions