leemunroe / grunt-email-workflow

A Grunt workflow for designing and testing responsive HTML email templates with SCSS.
MIT License
3.05k stars 339 forks source link

Fix the cdn path of the images for Amazon s3 #66

Closed raffaele-abramini closed 8 years ago

raffaele-abramini commented 8 years ago

Hello,

At the moment the cdn replace system change images path from ../dist/img/ to BUCKETURI/BUCKETNAME/SUBFOLDER/dist/img/

That url however return the error "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.".

To solve the issue, you should change set as BUCKETURI the endpoint of the bucket (ex. 'http://BUCKETNAME.s3-website-BUCKETREGION.amazonaws.com') and remove the BUCKETNAME after this in the CDN replacing task.

Could this help?

Cheers,

Raffaele

leemunroe commented 8 years ago

Hey @oldirony thanks for making the change.

Can somebody else that uses s3 confirm? Maybe @clecompte?