mercredi 26 août 2015

AWS cloudfront with subdomain, ruby on rails

So I'm using AWS Cloudfront to host my static assets with Ruby on Rails. Everything works as intended, until I try to deploy on my staging site. So for my origin on CF, I use staging.example.com. I update my production file to use the CF domain -> http://d3vam######.cloudfront.net. Then I check the website and this is where things to awry. None of the assets actually work. I take the asset path and paste it into the url, and it keeps resolving itself to http://ift.tt/1fGCHH1 instead of http://ift.tt/1EkHbiw, so the digest that the asset pipeline creates do not matchup. How can I get around this subdomain issue?




Aucun commentaire:

Enregistrer un commentaire