lundi 20 avril 2015

Specifiying image url when using Amazon S3 to serve static assets

I am using Amazon S3 to serve my static assets.

My question is : Which link do i should specify in a given view to display an image tag

For example in a local asset pipeline you would do:

<img src="/assets/my-image.jpg">

But when using amazon S3 you need to prefix the link with

<img src="http://ift.tt/1K0Wo6z">

But when i deploy my application, the image is broken ( since in the server it has an extra digest string)

How could i define in my view the source of an image tag, knowing that this image is a static one ?

Thanks




Aucun commentaire:

Enregistrer un commentaire